CentOS 永久关闭SELinux

CentOS 永久关闭SELinuxlinux

[root@lujie ~]# vim /etc/sysconfig/selinuxvim

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

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

# enforcing - SELinux security policy is enforced.blog

# permissive - SELinux prints warnings instead of enforcing.three

# disabled - No SELinux policy is loaded.ci

#SELINUX=enforcingget

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

# targeted - Targeted processes are protected,io

mls - Multi Level Security protection.

#SELINUXTYPE=targeted

设置方法:

1 #SELINUX=enforcing #注释掉

2 #SELINUXTYPE=targeted #注释掉

3 SELINUX=disabled #增长

4 :wq #保存,关闭。

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

相关文章
相关标签/搜索