码迷,mamicode.com
首页 > 系统相关 > 详细

selinux

时间:2016-10-18 17:56:41      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

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指令:setenforce 0

 

selinux

标签:

原文地址:http://www.cnblogs.com/jtlin/p/5973976.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!