ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

httpd重启失败No space left on device: AH00023: Couldn‘t create the ssl-cache mutex

2020-12-25 11:00:29  阅读:326  来源: 互联网

标签:status httpd 0x00000000 Couldn service cache apache 600


httpd重启失败No space left on device: AH00023: Couldn’t create the ssl-cache mutex

参考文章:

pache排查问题:Apache ERROR: No space left on device: AH00023: Couldn’t create the ssl-cache mutex

ipcs 命令

httpd.service重启失败,报错信息如下:

# service httpd start
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2020-11-24 10:23:57 CST; 5s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 16430 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  Process: 14493 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 14493 (code=exited, status=1/FAILURE)

Nov 24 10:23:57 izuf68hjhpsqp9dl4p2c9cz systemd[1]: Starting The Apache HTTP Server...
Nov 24 10:23:57 izuf68hjhpsqp9dl4p2c9cz systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Nov 24 10:23:57 izuf68hjhpsqp9dl4p2c9cz systemd[1]: Failed to start The Apache HTTP Server.
Nov 24 10:23:57 izuf68hjhpsqp9dl4p2c9cz systemd[1]: Unit httpd.service entered failed state.
Nov 24 10:23:57 izuf68hjhpsqp9dl4p2c9cz systemd[1]: httpd.service failed.

查看错误日志:

# tail -f  /var/log/httpd/error_log
[Tue Nov 24 10:25:01.344079 2020] [suexec:notice] [pid 14748] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Nov 24 10:25:01.344489 2020] [core:emerg] [pid 14748] (28)No space left on device: AH00023: Couldn't create the ssl-cache mutex 
AH00016: Configuration Failed
...

ipcs命令,查看apache分析消息队列、共享内存和信号量:

# ipcs -s | grep apache
0x00000000 163840     apache     600        1         
0x00000000 98305      apache     600        1         
0x00000000 2          apache     600        1         
0x00000000 98307      apache     600        1         
0x00000000 98308      apache     600        1         
0x00000000 98309      apache     600        1         
0x00000000 163846     apache     600        1         
0x00000000 163847     apache     600        1         
0x00000000 8          apache     600        1         
0x00000000 9          apache     600        1
...

删除apache分析消息队列、共享内存和信号量:

# ipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
...

重启httpd,成功!

# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-11-24 10:33:02 CST; 6s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 16430 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
 Main PID: 15687 (/usr/sbin/httpd)

本文首发于个人博客

标签:status,httpd,0x00000000,Couldn,service,cache,apache,600
来源: https://blog.csdn.net/weixin_43538536/article/details/111662494

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有