Last active
November 3, 2015 02:39
-
-
Save mangalaman93/338e9d7ef03952808ddc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./etcd -name etcd0 -data-dir data/0/ -advertise-client-urls http://127.0.0.1:2379 \ | |
-listen-client-urls http://127.0.0.1:2379 \ | |
-initial-advertise-peer-urls http://127.0.0.1:2380 \ | |
-listen-peer-urls http://127.0.0.1:2380 \ | |
-initial-cluster-token etcd-cluster \ | |
-initial-cluster etcd0=http://127.0.0.1:2380,etcd1=http://127.0.0.1:2382,etcd2=http://127.0.0.1:2384 \ | |
-initial-cluster-state new &> data/log0 | |
./etcd -name etcd1 -data-dir data/1/ -advertise-client-urls http://127.0.0.1:2381 \ | |
-listen-client-urls http://127.0.0.1:2381 \ | |
-initial-advertise-peer-urls http://127.0.0.1:2382 \ | |
-listen-peer-urls http://127.0.0.1:2382 \ | |
-initial-cluster-token etcd-cluster \ | |
-initial-cluster etcd0=http://127.0.0.1:2380,etcd1=http://127.0.0.1:2382,etcd2=http://127.0.0.1:2384 \ | |
-initial-cluster-state new &> data/log1 | |
./etcd -name etcd2 -data-dir data/2/ -advertise-client-urls http://127.0.0.1:2383 \ | |
-listen-client-urls http://127.0.0.1:2383 \ | |
-initial-advertise-peer-urls http://127.0.0.1:2384 \ | |
-listen-peer-urls http://127.0.0.1:2384 \ | |
-initial-cluster-token etcd-cluster \ | |
-initial-cluster etcd0=http://127.0.0.1:2380,etcd1=http://127.0.0.1:2382,etcd2=http://127.0.0.1:2384 \ | |
-initial-cluster-state new &> data/log2 | |
# etcdctl example commands | |
etcdctl --endpoint http://127.0.0.1:2383 get /foo/bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment