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

 

posted @ 2015-12-22 11:53  jeffery1010  Views(169)  Comments(0Edit  收藏  举报