Opening socket connection to server 192.168.179.1X/192.168.179.1X:2181.Will not attempt to authentic

在做zookeeper练习的时候出现了以上这个问题 以及Unable to connect to zookeeper server within timeout: 5000

一、解决Unable to connect to zookeeper server within timeout: 5000
在配置文件中加上timeout=“时间长一点”

 <dubbo:registry address="zookeeper://192.168.179.1X:2181 " timeout="1000000"/>
 

二、解决Opening socket connection to server 192.168.179.1X/192.168.179.1X:2181.Will not attempt to authentic

把linux系统中的防火墙关掉
命令是:service iptables stop

Logo

云原生社区为您提供最前沿的新闻资讯和知识内容

更多推荐