Zookeeper启动失败(CentOS 7 防火墙)

zookeeper配置
1.zoo.cfg的server.id=host:2888:3888
2.zoo.cfg的dataDir
3.在dataDir中创建myid文件,写入当前节点的id

正确配置下zookeeper启动失败,ssh免密登录也已配置,查看zookeeper.out

java.net.NoRouteToHostException: No route to host

可能是防火墙没有关。
CentOS 7 关闭防火墙命令:

systemctl start firewalld    #启动
systemctl stop firewalld    #关闭
systemctl status firewalld    #查看状态
systemctl disable firewalld    #停用(开机不启动)
systemctl enable firewalld    #启用(开机自启动)

相关推荐