小编gue*_*php的帖子

SELinux 不会在 CentOS7 上禁用

我想在短期内永久禁用,但似乎对我没有任何作用

我试过的步骤

[root@db1e secure]# setenforce 0
[root@db1e secure]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          disabled
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
Run Code Online (Sandbox Code Playgroud)

更改 /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 …
Run Code Online (Sandbox Code Playgroud)

linux selinux centos7

1
推荐指数
1
解决办法
2498
查看次数

标签 统计

centos7 ×1

linux ×1

selinux ×1