**
SELinux如何永久禁用
**
1.首先要做的是检查系统上SELinux的状态,可以通过运行以下命令来完成:
[root@centos7mini ~]#sestatus
2.如何临时禁用SELinux
[root@centos7mini ~]#getenforce
enforce
[root@centos7mini ~]#setenforce 0
[root@centos7mini ~]#getenforce
permissive
3.永久禁用SELinux
[root@centos7mini ~]#vi /etc/sysconfig/selinux
SELINUX=disabled
[root@centos7mini ~]#reboot