CentOS关闭防火墙&SELinux

须知:

防火墙配置文件:/etc/sysconfig/iptables

查看防火墙状态:service iptables status

关闭防火墙:service iptables stop

关闭iptalbes:chkconfig iptables off

查看那SELinux状态:getenforce

SELinux配置文件:/etc/selinux/config

****************************************************************

关闭防火墙:service iptables stop

关闭iptalbes:chkconfig iptables off

关闭SELinux:

执行命令:vim /etc/selinux/config,修改:

SELINUX=enforcing 为 SELinux=disable

原文地址:https://www.cnblogs.com/jeffry/p/5066188.html