瀏覽代碼

Merge pull request #57 from philips/README-update-build

README: update build instructions
Xiang Li 12 年之前
父節點
當前提交
418611a879
共有 1 個文件被更改,包括 3 次插入7 次删除
  1. 3 7
      README.md

+ 3 - 7
README.md

@@ -18,14 +18,10 @@ See [go-etcd][go-etcd] for a native go client. Or feel free to just use curl, as
 
 ### Building
 
-etcd is installed like any other Go (golang >= 1.1) binary. The steps below will put everything into a directory called etcd.
+To build etcd run the build script. This will generate a binary in the base directory called `./etcd`.
 
 ```
-mkdir etcd
-cd etcd
-export GOPATH=`pwd`
-go get github.com/coreos/etcd
-go install github.com/coreos/etcd
+./build
 ```
 
 ### Running a single node
@@ -33,7 +29,7 @@ go install github.com/coreos/etcd
 These examples will use a single node cluster to show you the basics of the etcd REST API. Lets start etcd:
 
 ```sh
-./bin/etcd
+./etcd
 ```
 
 This will bring up a node, which will be listening on internal port 7001 (for server communication) and external port 4001 (for client communication)