首页 > 系统服务 > 详细

centos 7 临时和永久关闭Selinux

时间:2019-12-31 11:33:28      阅读:96      评论:0      收藏:0      [点我收藏+]

1. 临时和永久关闭Selinux

[root@localhost ~]# getenforce
Enforcing

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

 

永久关闭:

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

SELINUX=enforcing 改为 SELINUX=disabled

重启服务reboot

centos 7 临时和永久关闭Selinux

原文:https://www.cnblogs.com/lyss/p/12122904.html

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