首页 > 系统服务 > 详细

SELinux处理命令

时间:2017-10-06 12:54:50      阅读:318      评论:0      收藏:0      [点我收藏+]

 

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处理命令

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!