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

关闭selinux

时间:2016-05-30 11:20:04      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:

检查selinux状态

1 [root@controller0 ~]# getenforce
2 enforcing                                #disabled表示关闭状态   enforcing表示开启状

临时关闭selinux(不用重启机器,临时生效)

setenforce 0         ##设置selinux为permissive模式   临时生效
setenforce 1         ##设置SELinux为enforcing模式

永久关闭selinux

修改/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled

重启机器,完成

关闭selinux

标签:

原文地址:http://www.cnblogs.com/horizonli/p/5541734.html

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