Linux关闭selinux的方法(临时关闭和永久关闭)

临时关闭selinux:

获取当前selinux状态

getenforce 

Enforcing为开启,Permissive为关闭

临时关闭:setenforce 0

永久关闭selinux:

vim /etc/sysconfig/selinux

SELINUX=enforcing 替换为SELINUX=disabled

重启后,运行命令sestatus

SELinux status :  disabled

猜你喜欢

转载自www.cnblogs.com/yqzc/p/12361784.html