获取SELinux的状态getenforce临时关闭SElinux:重启后SELinux还会自动启动setenforce 0永久关闭SELinux:编辑SELinux的配置文件vim /etc/selinux/config #修改 SELINUX=disabled