一時的および永続的にselinuxを閉じる


一時停止:
[root@localhost ~]# getenforce
Enforcing

[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive

永続的に閉じる:
[root@localhost ~]# vim /etc/sysconfig/selinux

SELINUX=enforcing    SELINUX=disabled

サービス再開reboot
転載先:https://blog.csdn.net/xin_y/article/details/79007986