zookeeper超时:Unable to connect to zookeeper server within timeout: 5000

解决措施:

1:检查 提供方和消费方的address是否正确

<dubbo:application name="dubboxdemo-servive"/>
<dubbo:registry address="zookeeper://192.168.25.130:2181"/>
<dubbo:annotation package="com.itcast.service.impl" />

2:查看linux中是否允许端口2181信息交互,若没有授权则授权端口

放端口命令  /sbin/iptables -I INPUT -p tcp --dport 3128-j ACCEPT

保存:/etc/rc.d/init.d/iptables save

当保存找不到iptables 文件时,使用下面命令保存

 service iptables save 

猜你喜欢

转载自www.cnblogs.com/jinyu-helloword/p/10457906.html
今日推荐