mysql啟動報錯一例

來源:互聯網
上載者:User

標籤: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啟動報錯一例

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.