Linux(centos)关闭selinux

临时关闭:

setenforce 0   #关闭为0,开启为1
getenforce   #查看seLinux状态,Enforcing为开启状态,Permissive为临时关闭状态

在这里插入图片描述

永久关闭:

vim /etc/selinux/config 

SELINUX=enforcing更改为SELINUX=disabled
在这里插入图片描述

发布了21 篇原创文章 · 获赞 0 · 访问量 580

猜你喜欢

转载自blog.csdn.net/u014270566/article/details/105501131