1、zookeeper 没有到主机的路由

zkServer.sh status查看当前状态  zk启动不成功

在zookeeper.out文件中报错如下

java.net.NoRouteToHostException: 没有到主机的路由

解决思路,先互相ping一下看是否能够ping通,如果可以ping通,可能是防火墙的原因

======================================================

  1.   1、临时状态、永久查询

    临时状态查询:

     service iptables status

     service ip6tables status

    永久状态查询:

     chkconfig --list | grep iptables

  2. 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.     1、临时状态、永久查询

    临时状态查看:

     systemctl status firewalld

    永久状态查看:

     systemctl list-unit-files | grep firewalld

  2. 2、重启、临时关闭、永久关闭 

    临时重启:

     systemctl stop firewalld

    永久关闭或开启:

     systemctl disable firewalld

猜你喜欢

转载自my.oschina.net/u/3551274/blog/1790707
今日推荐