关闭防火墙
6.x
a) 执行命令 :
service iptables stop
b) 验证防火墙关闭 :
service iptables status
a) 上述命令执行完,但重启后还会继续开启防火墙,所以要设置关闭防火墙的自动运行
b) 执行命令:
chkconfig iptables off
c) 验证命令
chkconfig --list|grep iptables
7.x
关闭防火墙:
systemctl stop firewalld.service
关闭防火墙开机自启动功能:
修改主机名systemctl disable firewalld.service
a) 执行 命令 hostname yufan (只适应于当前状态)
b) 执行命令 vi /etc/sysconfig/network,修改HOSTNAME=yufan