fishj1
经测试修改
[root@instance-name var]# vi /etc/selinux/config输入上面的命令打开文件看到以下内容
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=enforcing
SELINUXTYPE= can take one of these two values:
targeted - Targeted processes are protected,
minimum - Modification of targeted policy. Only selected processes are protected.
mls - Multi Level Security protection.
SELINUXTYPE=targeted
把SELINUX=enforcing 值修改成 SELINUX=disabled 然后保存重启服务器即可
这个和关了之后可以访问了
- fishj1 赞了回复
经测试修改
[root@instance-name var]# vi /etc/selinux/config输入上面的命令打开文件看到以下内容
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=enforcing
SELINUXTYPE= can take one of these two values:
targeted - Targeted processes are protected,
minimum - Modification of targeted policy. Only selected processes are protected.
mls - Multi Level Security protection.
SELINUXTYPE=targeted
把SELINUX=enforcing 值修改成 SELINUX=disabled 然后保存重启服务器即可