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

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐