![CPanel / WHM // CentOS // SELinux](https://linux22.com/image/65551/CPanel%20%2F%20WHM%20%2F%2F%20CentOS%20%2F%2F%20SELinux.png)
文件配置表明 SELinux 模式是“目标”。是启用还是禁用?
终端/SSH 显示“已禁用”。但这里和那里的一些行为就像它已启用一样。
谢谢。
答案1
显然它已启用,但仅保护目标网络服务。
从配置文件/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 - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
您还可以键入getenforce
,它会显示 SELinux 是否已启用或禁用。
答案2
要在您的服务器上运行 cPanel 和 WHM,SELinux 必须保持禁用状态。您可以通过以下命令检查selinux状态。
sestatus