java.net.ConnectException: Connection timed out: no further information
1、使用idea连接zookeeper时报如下错误:2.出现如上问题,先看下是否设置了timeout值--本地连接速度要快一些,但如果跨机器连接还是需要点时间的,可以适当设置长点<dubbo:config-center timeout="250000"/>--或在配置注册中心是添加timeout属性也可以<dubbo:registry address="zookeeper://1
·
1、使用idea连接zookeeper时报如下错误:
2.出现如上问题,先看下是否设置了timeout值
--本地连接速度要快一些,但如果跨机器连接还是需要点时间的,可以适当设置长点
<dubbo:config-center timeout="250000"/>
--或在配置注册中心是添加timeout属性也可以
<dubbo:registry address="zookeeper://192.168.117.128:2181" timeout="250000"/>
2、查看zookeeper是否是启动状态。
是启动状态,然后在查看防火墙情况。
3、查看其他及其的防火墙状态,如下图所示:
发现防火墙运行状态,我们先把防火墙关闭:
此时,已经关闭了防火墙。
*****防火墙相关操作:
1.启动防火墙
systemctl start firewalld2.禁用防火墙
systemctl stop firewalld3.设置开机启动
systemctl enable firewalld4.停止并禁用开机启动
sytemctl disable firewalld5.重启防火墙
firewall-cmd --reload6.查看状态
systemctl status firewalld或者 firewall-cmd --state7.查看版本
firewall-cmd --version8.查看帮助
firewall-cmd --help
--防火墙关闭后,发现可以连接上zookeeper了。
路漫漫其修远兮,吾将上下而求索,希望此篇文章对大家有所帮助......
更多推荐
所有评论(0)