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

SELinux处理命令

时间:2017-10-06 13:01:07      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:生效   config   strong   状态   命令   oca   ssi   linu   iss   

 

1 查看SELinux状态

    Enforcing为开启状态;Disabled为关闭状态。

[root@localhost /]# getenforce

Enforcing

 

2 临时关闭SELinux

[root@localhost /]# setenforce 0

[root@localhost /]# getenforce

Permissive

 

3 永久关闭SELinux

使用文本编辑工具打开 /etc/selinux/config

vi /etc/selinux/config

将SELINUX=enforcing改为SELINUX=disabled

设置后需要重启才能生效。

SELinux处理命令

标签:生效   config   strong   状态   命令   oca   ssi   linu   iss   

原文地址:http://www.cnblogs.com/robinex/p/7631374.html

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