即使它被停用(安装FreeBPX时)仍然检测SELinux

时间:2017-08-01 18:35:01

标签: centos asterisk centos6 freepbx

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

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

我已通过在SELINUX=disabled中编写/etc/sysconfig/selinux来禁用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 

1 个答案:

答案 0 :(得分:0)

我找到了解决方案,部分归功于@Dusan Bajic的评论,运行sestatus

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

快速搜索让我意识到,为了禁用SELinux,我必须修改/etc/selinux/config,而不是sestatus

SELinux status:                 disabled