2.etcd安装
yum install etcd -y sed -i 's#ETCD_LISTEN_CLIENT_URLS="http://localhost:2379"#ETCD_LISTEN_CLIENT_URLS="http://0.0.0.0:2379,http://0.0.0.0:4001"#g' /etc/etcd/etcd.conf sed -i 's#ETCD_NAME="default"#ETCD_NAME="master"#g' /etc/etcd/etcd.conf sed -i 's#ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379"#ETCD_ADVERTISE_CLIENT_URLS="http://etcd:2379,http://etcd:4001"#g' /etc/etcd/etcd.conf //启动etcd: systemctl start etcd //设置etcd开启自启动: systemctl enable etcd //获取etcd的健康状态 etcdctl -C http://etcd:2379 cluster-health etcdctl -C http://etcd:4001 cluster-health