Linux 临时和永久关闭 Selinux

查看当前 Selinux 状态:getenforce

 临时关闭 Selinux:setenforce 0

 永久关闭 Selinux:

1 vim /etc/sysconfig/selinux
2 
3 4 
5 SELINUX=enforcing
6 
7 改成
8 
9 SELINUX=disabled

原文地址:https://www.cnblogs.com/clubs/p/11535586.html