我是靠谱客的博主 勤劳丝袜,这篇文章主要介绍centos 关闭色linux,CentOS 6.4永久关闭SELinux,现在分享给大家,希望可以做个参考。

[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

最后

以上就是勤劳丝袜最近收集整理的关于centos 关闭色linux,CentOS 6.4永久关闭SELinux的全部内容,更多相关centos内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(122)

评论列表共有 0 条评论

立即
投稿
返回
顶部