尽管我已禁用 SELinux,但仍检测到它已启用(尝试安装 FreePBX 时)

尽管我已禁用 SELinux,但仍检测到它已启用(尝试安装 FreePBX 时)

我按照本指南在 CentOS 6.9(minimaslist)上安装 FreePBX,一切正常,直到安装 FreePBX 的最后一步:./install -n/usr/src/freepbx,我不断收到以下错误消息:

Assuming you are Database Root
Checking if SELinux is enabled...Error!
SELinux is enabled.  Please disable SELinux before installing FreePBX.

我已经禁用了 SELinux,方法是写入SELINUX=disabled以下文件/etc/sysconfig/selinux然后重新启动,但我仍然遇到同样的问题。作为参考,以下是输出cat /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=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 

以下是输出sestatus

SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

答案1

我以前也遇到过这个问题:快速搜索让我意识到,为了禁用 SELinux,我必须进行修改/etc/selinux/config,这样做会得到sestatus

SELinux status:                 disabled

相关内容