CentOS 6.4 關閉 selinux

[root@lujie ~]# vim /etc/sysconfig/selinux linux


setenforce 0 vim

# This file controls the state of SELinux on the system. spa

# SELINUX= can take one of these three values: .net

#     enforcing - SELinux security policy is enforced. three

#     permissive - SELinux prints warnings instead of enforcing. ci

#     disabled - No SELinux policy is loaded. get

#SELINUX=enforcing it

# SELINUXTYPE= can take one of these two values: io

#     targeted - Targeted processes are protected, file

#     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


~

相關文章
相關標籤/搜索