No space left on device: Couldn't create accept lock
上一篇 / 下一篇 2008-01-28 09:54:51 / 个人分类:linux技术
[emerg] (28)No space left on device: Couldn't create accept lock刚开始还以为是空间不足,造成无法创建cgisock文件,但是df -h察看,发觉不是这个问题。求助于google,一下子就找到了原因。IXPUB技术博客(iNZ!dXd@$\
使用:ipcs -s | grep nobodyIXPUB技术博客 l!z%[ vZ0W
IXPUB技术博客1Cr.B'`7^5S{
_k$QU)Z#fL9K%w*iuB|0察看发觉有一堆ipc使用,需要干掉。这个可能的原因是程序所造成的。IXPUB技术博客9cto ca
-P0@"h`7WF6q0清除命令:
?I9A)mY0ipcs -s | grep nobody | perl -e 'while (<STDIN>;) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'IXPUB技术博客,sL }T7k]l@
然后启动Apache即可。IXPUB技术博客(kE#Q-`5J
0SP j$W,Wo0更深入的了解:IXPUB技术博客sT,k3q3]
m[t7]w9|7CBE0
^$S'yu0u4b9a/u0IXPUB技术博客rAS:F9st6W
Fixing Apache "No space left on device: Couldn't create accept lock" errors
8o }G0s/e$j)k`/Q"k0IXPUB技术博客*cK}/b ~Error Message: When starting Apache, I get this error message in the main Apache error_log:IXPUB技术博客o6R%HGUmB ^
IXPUB技术博客UH+HLUo ^3dh[emerg] (28)No space left on device: Couldn't create accept lock
b#KbuHTu/n C0[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)IXPUB技术博客
RZ-g)gYgej
[notice] Digest: generating secret for digest authentication ...IXPUB技术博客;SpR!C,La*D
[notice] Digest: doneIXPUB技术博客|F7z#M#Qu!c8_lh,\
[warn] pid file /etc/httpd/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
9{phjW,m)j6r^.Q#o0[emerg] (28)No space left on device: Couldn't create accept lock
}-uQ+nn`.wP0
First off, check to make sure that you really aren't out of disk space, or have hit a quota limit. Another way that Apache can create the "accept lock" is with a semaphore. A semaphore is an inter-process communication tool that is used by Apache to communicate with it's child processes. This error message may mean that Apache couldn't create a new semaphore.IXPUB技术博客1T t.L#A"R*V;jS,H6wk
"Q%a~8lw6If^:|2O0
Check to see how many semaphores are currently in use. If Apache is running correctly, you should see something like this:
RE p Du2ZOw{0,V9n-Kuq0
# ipcs -s
K/z$A0~s9T}0------ Semaphore Arrays --------