daizuozhuo.github.io/etcd-service-discovery/
- Install Golang: sudo yum install golang
- mkdir $HOME/Go
- add environment variable to ~/.bashrc
export GOPATH=$HOME/Go
export PATH=$HOME/Go/bin:$PATH
, reload itsource ~/.bashrc
- put the project inside $HOME/Go/src/github.com/daizuozhuo/
go get github.com/tools/godep
godep restore
- `cd etcd-service-discovery/exmaple"
go build
- run etcd server on the localhost.
./example -role master
./example -role worker