配置环境变量即可
export PATH=/usr/local/etcd/bin/:$PATH(多路径之间用:分隔)
export ETCDCTL_API=2
正常可以看到
[root@etcd5 ~]# etcdctl member list
71b9fac8482ec139, started, etcd-1, http://10.1.1.5:2380, http://10.1.1.5:2379
89d4b75907acdf9a, started, etcd-3, http://10.1.1.7:2380, http://10.1.1.7:2379
b22a0934e0760a75, started, etcd-2, http://10.1.1.6:2380, http://10.1.1.6:2379
网友评论