Zookeeper啓動失敗(CentOS 7 防火牆)

zookeeper配置
1.zoo.cfg的server.id=host:2888:3888
2.zoo.cfg的dataDir
3.在dataDir中建立myid文件,寫入當前節點的idjava

正確配置下zookeeper啓動失敗,ssh免密登陸也已配置,查看zookeeper.outssh

java.net.NoRouteToHostException: No route to host

多是防火牆沒有關。
CentOS 7 關閉防火牆命令:.net

systemctl start firewalld    #啓動
systemctl stop firewalld    #關閉
systemctl status firewalld    #查看狀態
systemctl disable firewalld    #停用(開機不啓動)
systemctl enable firewalld    #啓用(開機自啓動)
相關文章
相關標籤/搜索