CentOS 6.4永久关闭SELinux
2014-02-25 09:33
549 查看
[root@lujie ~]# vim /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
#SELINUXTYPE=targeted
设置方法:
1 #SELINUX=enforcing #注释掉
2 #SELINUXTYPE=targeted #注释掉
3 SELINUX=disabled #增加
4 :wq #保存,关闭。
5 shutdown -r now #重启
完整修改后如下:
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
#SELINUXTYPE=targeted
SELINUX=disabled
~
~
~
~
~
~
~
~
~
~
~
~
:wq
[root@lujie ~]# shutdown -r now
查看SELinux的状态:
getenforce
[root@lujie ~]# getenforce
Disabled
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
#SELINUXTYPE=targeted
设置方法:
1 #SELINUX=enforcing #注释掉
2 #SELINUXTYPE=targeted #注释掉
3 SELINUX=disabled #增加
4 :wq #保存,关闭。
5 shutdown -r now #重启
完整修改后如下:
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
#SELINUXTYPE=targeted
SELINUX=disabled
~
~
~
~
~
~
~
~
~
~
~
~
:wq
[root@lujie ~]# shutdown -r now
查看SELinux的状态:
getenforce
[root@lujie ~]# getenforce
Disabled
相关文章推荐
- CentOS 6.4永久关闭SELinux
- RedHat/CentOS6.4---永久关闭iptables
- RedHat/CentOS6.4---永久关闭iptables
- 在CentOS 6.0下面永久关闭SELinux
- CentOS 6.6永久关闭 SELinux与防火墙 的方法
- centos6.4 查看和关闭selinux
- 在CentOS 6.0下面永久关闭SELinux和防火墙
- 临时和永久关闭Selinux
- linux centos系统永久关闭ipv6
- centos 6.4 修改ssh默认端口22为其他端口详尽安全教程(包含SELinux,iptables设置)
- centos 关闭防火墙以及关闭selinux方法
- CentOS6.4关闭触控板
- Centos7 关闭防火墙和selinux
- CentOS工作内容(二)关闭SELinux
- CentOS 5 彻底关闭SELinux和防火墙[转]
- CentOS系统如何快速关闭SELINUX
- centos selinux关闭
- CentOS关闭防火墙&SELinux
- centos 关闭selinux
- centos 7 关闭SELINUX