httpd进去发现打不开,网上冲浪找到了对策
1、[root@test1 ~]# vim /etc/selinux/config 进去改为disabled
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
2、# setenforce 0 //临时关闭
# getenforce //查询状态
[root@test1 ~]# setenforce 0
[root@test1 ~]# getenforce
Permissive
3、再进去发现