centos6.5
查看防火墙状态 : service iptable status
临时关闭防火墙 : servcie iptables stop
永久关闭防火墙 :
chkconfig iptables
off
centos7
停止firewall: systemctl stop firewalld.service
禁止firewall开机启动:systemctl disable firewalld.service
查看防火墙状态 : systemctl status firewalld.service