selinux服务状态查看、关闭
selinux的配置文件 /etc/selinux/config
临时关闭:setenforce 0
查看状态:sestatus
[root@goodgoogstudy ~]# sestatus
SELinux status: disabled
或者 getenforce
[root@goodgoogstudy ~]# getenforce
Disabled
永久关闭:修改配置文件
SELINUX=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=enforcing
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
重启客户端生效:
[root@goodgoogstudy ~]# reboot
//欢迎一起讨论学习!