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

关闭selinux

时间:2016-04-24 18:31:50      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

关闭SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启。
如果不想重启系统,使用命令setenforce 0
注:
setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式 
在lilo或者grub的启动参数中增加:selinux=0,也可以关闭selinux 

#---------------------------------------------------------------
查看selinux状态:
/usr/bin/setstatus -v 
如下:
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          enforcing
Policy version:                 21
Policy from config file:        targeted 
  
getenforce/setenforce查看和设置SELinux的当前工作模式

关闭selinux

标签:

原文地址:http://www.cnblogs.com/BrianQQ/p/5427553.html

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