centos7关闭防火墙
1、状态
查看防火墙状态: systemctl status firewalld
绿的running表示防火墙开启dead表示关闭
2、关闭
关闭防火墙: systemctl stop firewalld
执行开机禁用防火墙自启命令 : systemctl disable firewalld
3、启动
启动:systemctl start firewalld
防火墙随系统开启启动 : systemctl enable firewalld
centos6关闭防火墙
1、状态
查看防火墙状态:service iptables status
显示not running 未运行 running 运行
2、关闭
关闭防火墙:service iptables stop
永久关闭防火墙:chkconfig iptables off
3、启动
启动:service iptables start
永久开启防火墙:
chkconfig iptables on