apache 服务启动失败,信号量未释放

1. apache故障现象

因为之前一直用reload热部署apache,可能有些mutex信号量没有释放,造成无法申请。有时会导致apache 启动/加载失败,并且报一些如下的错误 -->

root@lry httpd]# tail error_log
[Mon Jun 28 16:34:28.797261 2021] [core:notice] [pid 31927] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Jun 28 16:34:28.799903 2021] [suexec:notice] [pid 31927] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jun 28 16:34:28.816970 2021] [core:emerg] [pid 31927] (28)No space left on device: AH00023: Couldn't create the proxy mutex 
[Mon Jun 28 16:34:28.818127 2021] [proxy:crit] [pid 31927] (28)No space left on device: AH02478: failed to create proxy mutex
[Mon Jun 28 16:34:28.818141 2021] [:emerg] [pid 31927] AH00020: Configuration Failed, exiting
[Mon Jun 28 16:37:30.133663 2021] [core:notice] [pid 32151] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Jun 28 16:37:30.134915 2021] [suexec:notice] [pid 32151] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jun 28 16:37:30.147614 2021] [core:emerg] [pid 32151] (28)No space left on device: AH00023: Couldn't create the proxy mutex 
[Mon Jun 28 16:37:30.147647 2021] [proxy:crit] [pid 32151] (28)No space left on device: AH02478: failed to create proxy mutex
[Mon Jun 28 16:37:30.147667 2021] [:emerg] [pid 32151] AH00020: Configuration Failed, exiting

2. 解决办法

则执行下面语句,释放同步信号量

ipcs | grep apache | awk  '{print $2}'  >  signal.txt
for  i  in  `cat  signal.txt` ;  do  { ipcrm -s $i; } ;  done;

3. 再次重启apache即可解决

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值