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

临时和永久关闭Selinux

时间:2019-09-11 16:22:37      阅读:96      评论:0      收藏:0      [点我收藏+]

标签:selinux   nbsp   oca   led   enforce   iss   cal   ORC   for   

临时关闭:

[root@localhost ~]# getenforce
Enforcing

[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive

 

永久关闭:

[root@localhost ~]# vim /etc/sysconfig/selinux

SELINUX=enforcing 改为 SELINUX=disabled

重启服务reboot

临时和永久关闭Selinux

标签:selinux   nbsp   oca   led   enforce   iss   cal   ORC   for   

原文地址:https://www.cnblogs.com/zuikeol/p/11506355.html

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