首页 > 系统服务 > 详细

Linux命令 -- Selinux关闭

时间:2020-10-26 09:44:08      阅读:35      评论:0      收藏:0      [点我收藏+]
关闭centos 7 selinux
查看selinux当前状态
[root@localhost ~]# getenforce
Enforcing #Enforcing开启状态 Permissive 关闭状态

永久关闭selinux
vim /etc/selinux/config
修改:SELINUX=enforcing 为 SELINUX=disabled
source /etc/selinux/config #使配置生效

临时关闭selinux
[root@localhost ~]# setenforce 0#设置
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
1 开启状态
0 关闭状态

修改完毕,在查看一下状态
[root@localhost ~]# getenforce
Permissive

Linux命令 -- Selinux关闭

原文:https://blog.51cto.com/paitoubing/2543746

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