client: etcd cluster is unavailable or misconfigured
来源:4-10 Docker Overlay网络和etcd实现多机容器通信
慕粉1907
2018-11-08
^C[root@admin001 etcd-v3.0.12-linux-amd64]./etcdctl cluster-health
cluster may be unhealthy: failed to list members
Error: client: etcd cluster is unavailable or misconfigured
error #0: dial tcp 127.0.0.1:2379: getsockopt: connection refused
error #1: dial tcp 127.0.0.1:4001: getsockopt: connection refused
这是啥子情况,防火墙关了,网络也正常,看了下网上说的修改etcd的配置文件:vim /etc/etcd/etcd.conf
ETCD_LISTEN_CLIENT_URLS="http://192.168.7.78:2379,http://127.0.0.1:2379"后面配置http://127.0.0.1:2379,与本机自己进行通信
重启后好像也没啥效果,求解,谢谢
nohup.out 有个超时的错误etcdserver: publish error: etcdserver: request timed out
2回答
-
心恋free
2018-11-16
开启一下端口,我也是关了防火墙没啥用,后来是通过开启端口才成功了,
sudo firewall-cmd --zone=public --add-port=2379/tcp --permanent
sudo firewall-cmd --zone=public --add-port=2380/tcp --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --list-ports
112018-11-16 -
麦兜搞IT
2018-11-08
您在几个节点上的etcd都正常启动了么?您把您的几条启动命令包括本机IP都贴出来我看看
00
相似问题