ectd入门使用

单集群使用

启动etcd

1
./etcd

使用etcdtcl与etcd交互

1
2
./etcdctl put foo bar
OK

获取etcd所有key

1
2

etcdctl get --prefix --keys-only /