Catch

CentOS关闭防火墙

CentOS 6

//临时关闭 service iptables stop //禁止开机启动 chkconfig iptables off

CentOS 7

//临时关闭 systemctl stop firewalld //禁止开机启动 systemctl disable firewalld //临时开启 systemctl start firewalld //开启开机启动 systemctl enable firewalld