SELinux

来源:互联网 发布:小小食杂铺 知乎 编辑:程序博客网 时间:2024/06/05 07:08
1)、永久关闭 selinux
# vim /etc/selinux/config

# 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 - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

2)、临时关闭 selinux 
# setenforce 0

3)、查看 selinux 状态
# getenforce
0 0
原创粉丝点击