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

阅读次数: 15,473

  • A+
所属分类:建站

今天apche突然无法启动了,然后就查看了日志  tail -f /usr/local/apache/logs/error_log

发现有这样一段

[Mon Aug 27 10:44:51.925645 2018] [suexec:notice] [pid 30196:tid 139747656554240] AH01232: suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Aug 27 10:44:51.925755 2018] [jk:warn] [pid 30196:tid 139747656554240] No JkLogFile defined in httpd.conf. Using default /usr/local/apache/logs/mod_jk.log
[Mon Aug 27 10:44:51.925825 2018] [jk:warn] [pid 30196:tid 139747656554240] No JkShmFile defined in httpd.conf. Using default /usr/local/apache/logs/jk-runtime-status
[Mon Aug 27 10:44:51.926246 2018] [:notice] [pid 30196:tid 139747656554240] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured.
[Mon Aug 27 10:44:51.926265 2018] [:notice] [pid 30196:tid 139747656554240] ModSecurity: APR compiled version="1.6.3"; loaded version="1.6.3"
[Mon Aug 27 10:44:51.926271 2018] [:notice] [pid 30196:tid 139747656554240] ModSecurity: PCRE compiled version="8.42 "; loaded version="8.42 2018-03-20"
[Mon Aug 27 10:44:51.926274 2018] [:notice] [pid 30196:tid 139747656554240] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Aug 27 10:44:51.926277 2018] [:notice] [pid 30196:tid 139747656554240] ModSecurity: LIBXML compiled version="2.7.6"
[Mon Aug 27 10:44:51.926281 2018] [:notice] [pid 30196:tid 139747656554240] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Mon Aug 27 10:44:51.985358 2018] [core:emerg] [pid 30199:tid 139747656554240] (28)No space left on device: AH00023: Couldn't create the rewrite-map mutex

查找了百度,看到说是 用户进程通信信号量达到限制导致

查看信号量:ipcs命令

-a:显示全部可显示的信息;
-q:显示活动的消息队列信息;
-m:显示活动的共享内存信息;
-s:显示活动的信号量信息。

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

如图,apache并没有开启,但是通道却用了这么多,很显然不正常。

清除信号量代码如下

ipcs -s | perl -ane '/^0x00000000/ && `ipcrm -s $F[1]`'

清除完成后重启apache,在netstat -natp 发现80端口已经出来了。

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: