Centos7
// 临时关闭防火墙
systemctl stop firewalld
// 禁止开机启动防火墙
systemctl disable firewalld
Centos6
// 临时关闭防火墙
service iptables stop
// 禁止开机启动防火墙
chkconfig iptables off
Centos7
// 临时关闭防火墙
systemctl stop firewalld
// 禁止开机启动防火墙
systemctl disable firewalld
Centos6
// 临时关闭防火墙
service iptables stop
// 禁止开机启动防火墙
chkconfig iptables off