The description of issue:
通過zookeeper連接服務(wù)器,連接不上,最終發(fā)現(xiàn)是端口不允許訪問
Simple and easy way
Linux防火墻(Iptables)重啟系統(tǒng)生效
開啟: chkconfig iptables on
關(guān)閉: chkconfig iptables offLinux防火墻(Iptables) 即時(shí)生效聚至,重啟后失效
開啟: service iptables start
關(guān)閉: service iptables stop
Allow port to visit by the remote client
cat /etc/sysconfig/iptables
vi /etc/sysconfig/iptables
iptables --list
service iptables restart
When restart is not ok,maybe add sudo
Delete rule
iptables -L INPUT -n --line-numbers ,通過命令iptables -L也可以查看爹梁,本例開通了
iptables -D input {line-numbers}