selinux
Posted jetlin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了selinux相关的知识,希望对你有一定的参考价值。
[email protected] ~]# vim /etc/sysconfig/selinux
# 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=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
#SELINUXTYPE=targeted
设置方法:
1 #SELINUX=enforcing #注释掉
2 #SELINUXTYPE=targeted #注释掉
3 SELINUX=disabled #增加
4 :wq #保存,关闭。
5 shutdown -r now #重启
临时关闭selinux指令:setenforce 0
以上是关于selinux的主要内容,如果未能解决你的问题,请参考以下文章