今天,在作zookeeper集羣的時候,遇到not route host。機器是3臺centerOS7,linux
知識:centerOS7默認以firewalld爲其默認防火牆,因此跟iptable不要緊。shell
接下來主要關閉firewalld防火牆。spa
1.中止firewalld服務code
systemctl stop firewalld
2.關閉firewaller服務ip
systemctl disable firewalld
會出現下列刪除的語句ci
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service' rm '/etc/systemd/system/basic.target.wants/firewalld.service'
3.編輯 /etc/sysconfig/selinux 文件get
#SELINUX=enforcing SELINUX=disabled //設置其SELINUX=disabled
4.設置setenforce 0table
[root@#localhost bin]# setenforce 0
這樣就關閉了firewalld防火牆,能夠按照正常流程開啓zookeeper集羣class