Skip to content
source code of daizuozhuo.github.io/etcd-service-discovery/
Go
Branch: master
Clone or download
daizuozhuo Merge pull request #6 from chenqinghe/origin
delete example and edit README.md
Latest commit 32e3e61 Aug 13, 2017

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps
discovery
example
README.md

README.md

etcd-service-discovery

daizuozhuo.github.io/etcd-service-discovery/

Build

  1. Install Golang: sudo yum install golang
  2. mkdir $HOME/Go
  3. add environment variable to ~/.bashrc export GOPATH=$HOME/Go export PATH=$HOME/Go/bin:$PATH, reload it source ~/.bashrc
  4. put the project inside $HOME/Go/src/github.com/daizuozhuo/
  5. go get github.com/tools/godep
  6. godep restore
  7. `cd etcd-service-discovery/exmaple"
  8. go build

Run

  1. run etcd server on the localhost.
  2. ./example -role master
  3. ./example -role worker
You can’t perform that action at this time.