临时关闭: setenforce 0 #关闭为0,开启为1 getenforce #查看seLinux状态,Enforcing为开启状态,Permissive为临时关闭状态 永久关闭: vim /etc/selinux/config 高级用法:sed -i 's#SELINUX=enforcing#SELINUX==disabled# /etc/selinux/config 将SELINUX=enforcing更改为SELINUX=disabled