Skip to content

michael1589/etcd-service-discovery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

source code of daizuozhuo.github.io/etcd-service-discovery/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%