CentOS7使用firewalld打开关闭防火墙与端口
启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld
开机禁用 : systemctl disable firewalld
开机启用 : systemctl enable firewalld
CentOS6关闭防火墙与端口
立即关闭,并非永久关闭:service iptables stop
永久关闭:iptables -F #关闭防火墙功能
chkconfig iptables off #禁止防火墙启动