2019独角兽企业重金招聘Python工程师标准>>> 
zkServer.sh status查看当前状态 zk启动不成功
在zookeeper.out文件中报错如下
java.net.NoRouteToHostException: 没有到主机的路由
解决思路,先互相ping一下看是否能够ping通,如果可以ping通,可能是防火墙的原因
======================================================
-
1、临时状态、永久查询
临时状态查询:
service iptables status
service ip6tables status
永久状态查询:
chkconfig --list | grep iptables
-
2
2、重启、临时关闭、永久关闭
临时关闭、启动:
service iptables stop /start
service ip6tables stop /start
永久关闭、启动:
chkconfig --level 2345 iptables off /on
chkconfig --level 2345 ip6tables off/on
END
(2)RHEL 7防火墙设置
-
1、临时状态、永久查询
临时状态查看:
systemctl status firewalld
永久状态查看:
systemctl list-unit-files | grep firewalld
-
2、重启、临时关闭、永久关闭
临时重启:
systemctl stop firewalld
永久关闭或开启:
systemctl disable firewalld
转载于:https://my.oschina.net/u/3551274/blog/1790707
最后
以上就是奋斗苗条最近收集整理的关于1、zookeeper 没有到主机的路由的全部内容,更多相关1、zookeeper内容请搜索靠谱客的其他文章。
发表评论 取消回复