Aapache 启动不了,报错信息:suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

安装nagiosxi的过程中,提示但是无法安装成功,提示查看  systemctl status httpd.service  ,httpd启动失败,应该是httpd的问题,查看/etc/httpd/logs/error.log 如下

[Tue Feb 27 09:30:57.417008 2018] [core:notice] [pid 27244] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Feb 27 09:30:57.417655 2018] [suexec:notice] [pid 27244] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Feb 27 09:30:57.417663 2018] [core:emerg] [pid 27244] (28)No space left on device: AH00023: Couldn't create the proxy mutex
[Tue Feb 27 09:30:57.417667 2018] [proxy:crit] [pid 27244] (28)No space left on device: AH02478: failed to create proxy mutex
AH00016: Configuration Failed

第一个问题是SELinux的配置问题,关闭SElinux再测试还是无法安装
/usr/sbin/setenforce 0 立刻关闭 SELINUX
/usr/sbin/setenforce 1 立刻启用 SELINUX

再看第二个问题,百度查询到一篇文章,原连接

解决办法:
1、输入:ipcs -s 看有没有超过5个,如果有请执行下面2的命令:
查出来了是一堆zabbix信息,是因为之前安装zabbix

2、ipcs -s | perl -ane '/^0x00000000/ && `ipcrm -s $F[1]`'
3、重启Apache服务。(到此问题解决!)
ipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'

继续安装nagiosxi成功

posted @ 2018-02-27 10:10  代码无涯  阅读(1295)  评论(0编辑  收藏  举报