Quickstart

Follow the instructions below to locally install, run, and test a simple single-member cluster of etcd.

To help with the commands that follow, set these environment variables:

On Linux

  1. rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
  2. mkdir -p $ETCD_BIN
  3. curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
  4. tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C $ETCD_BIN --strip-components=1

On macOS

Note

  1. $ $ETCD_BIN/etcd

From another terminal, use etcdctl to set a key:

Now that a key has been set, retrieve it:

  1. greeting
  2. Hello, etcd