Created
December 8, 2016 11:19
-
-
Save ichaida/813e41c9fc549687d8298b75750f6874 to your computer and use it in GitHub Desktop.
Linux install ETCD Distributed Key-Value Store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Downloading ETCD Distributed Key-Value Store..." | |
# Grab binary release of etcd | |
ETCD_VER=v3.0.15 | |
DOWNLOAD_URL=https://github.com/coreos/etcd/releases/download | |
curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz | |
# Extract in temp | |
mkdir -p /tmp/etcd && tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd --strip-components=1 | |
# Install etcd and etcdctl | |
cp /tmp/etcd/etcd /usr/local/bin/ | |
cp /tmp/etcd/etcdctl /usr/local/bin/ | |
# Then clean up | |
rm -Rf /tmp/etcd | |
rm /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz | |
/usr/local/bin/etcd --version | |
# Create a directory where etcd can store persistent data | |
mkdir -p /var/lib/etcd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment