流觞区直

导航

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

  

posted on 2019-08-21 01:24  流觞区直  阅读(227)  评论(0编辑  收藏  举报