Skip to content

Instantly share code, notes, and snippets.

@bradlucas
Forked from diegopacheco/etcd.md
Created December 8, 2016 17:08
Show Gist options
  • Select an option

  • Save bradlucas/53b218ffa0c9b0dc97822a5b47e329ee to your computer and use it in GitHub Desktop.

Select an option

Save bradlucas/53b218ffa0c9b0dc97822a5b47e329ee to your computer and use it in GitHub Desktop.
How to Build and Install Etcd on Amazon Linux / CentOS?

Install Go and git, Download Etcd from github and build

sudo yum install -y golang git
go version
sudo git clone https://github.com/coreos/etcd
cd etcd
sudo ./build

Add etcd on path on ~/.bashrc

sudo vim ~/.bashrc
export PATH=$PATH:/home/ec2-user/etcd/bin
ESC + : + wq! + ENTER

Source ~/.bashrc

source  vim ~/.bashrc

Check

etcd
etcdctl -v
curl -L http://127.0.0.1:2379/version

etcdctl set /message Hello
etcdctl get /message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment