mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #10359 from rkday/install-instructions
docs: install etcdctl with `go get` as well
This commit is contained in:
commit
21e0d3e527
@ -27,6 +27,7 @@ To build a vendored `etcd` from the `master` branch via `go get`:
|
|||||||
$ echo $GOPATH
|
$ echo $GOPATH
|
||||||
/Users/example/go
|
/Users/example/go
|
||||||
$ go get -v go.etcd.io/etcd
|
$ go get -v go.etcd.io/etcd
|
||||||
|
$ go get -v go.etcd.io/etcd/etcdctl
|
||||||
```
|
```
|
||||||
|
|
||||||
## Test the installation
|
## Test the installation
|
||||||
@ -35,14 +36,14 @@ Check the etcd binary is built correctly by starting etcd and setting a key.
|
|||||||
|
|
||||||
### Starting etcd
|
### Starting etcd
|
||||||
|
|
||||||
If etcd is built without using GOPATH, run the following:
|
If etcd is built without using `go get`, run the following:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ ./bin/etcd
|
$ ./bin/etcd
|
||||||
```
|
```
|
||||||
If etcd is built using GOPATH, run the following:
|
If etcd is built using `go get`, run the following:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ $GOPATH/bin/etcd
|
$ $GOPATH/bin/etcd
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -50,11 +51,13 @@ $ $GOPATH/bin/etcd
|
|||||||
|
|
||||||
Run the following:
|
Run the following:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ ETCDCTL_API=3 ./bin/etcdctl put foo bar
|
$ ETCDCTL_API=3 ./bin/etcdctl put foo bar
|
||||||
OK
|
OK
|
||||||
```
|
```
|
||||||
|
|
||||||
|
(or `ETCDCTL_API=3 $GOPATH/bin/etcdctl put foo bar` if etcdctl was installed with `go get`)
|
||||||
|
|
||||||
If OK is printed, then etcd is working!
|
If OK is printed, then etcd is working!
|
||||||
|
|
||||||
[github-release]: https://github.com/etcd-io/etcd/releases/
|
[github-release]: https://github.com/etcd-io/etcd/releases/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user