码迷,mamicode.com
首页 > 数据库 > 详细

mysql启动报错一例

时间:2014-12-17 18:56:23      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:db

问题:Apache无法启动,查看日志记录如下,检查磁盘空间以及inode都正常


[Tue May 20 18:10:48 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Tue May 20 18:10:48 2014] [warn] module wsgi_module is already loaded, skipping

[Tue May 20 18:10:48 2014] [warn] module wsgi_module is already loaded, skipping

[Tue May 20 18:10:48 2014] [notice] Digest: generating secret for digest authentication ...

[Tue May 20 18:10:48 2014] [notice] Digest: done

[Tue May 20 18:10:48 2014] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.

[Tue May 20 18:10:48 2014] [notice] mod_python: using mutex_directory /tmp 

[Tue May 20 18:10:49 2014] [emerg] (28)No space left on device: Couldn‘t create accept lock (/etc/httpd/logs/accept.lock.4485) (5)



原因:

Semaphore Arrays已满,下面是查到的相关解释


What the heck is a semaphore? Well, it’s actually an apparatus for conveying information by means of visual signals.

 But, when it comes to programming, semaphores are used for communicating between the active processes of a certain application.

 In the case of Apache, they’re used to communicate between the parent and child processes. If Apache can’t write these things down, then it can’t communicate properly with all of the processes it starts.



解决办法:

for i in `ipcs -s | grep apache| awk ‘{print $2}‘`; do ipcrm -s $i; done



可以通过调整内核增加该值

kernel.msgmni = 1024

kernel.sem = 250 256000 32 1024 


本文出自 “Try to be brave” 博客,谢绝转载!

mysql启动报错一例

标签:db

原文地址:http://0487561.blog.51cto.com/7160047/1591031

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!