Apache启动不了,报错信息:No space left on device. . . . . .

文章分类:Java编程

报错信息:   
[Wed Mar 11 15:57:46 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Wed Mar 11 15:59:22 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 11 15:59:22 2009] [error] (28)No space left on device: Cannot create SSLMutex
Configuration Failed
[Wed Mar 11 16:00:25 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Wed Mar 11 16:01:43 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed

解决办法:
1、输入:ipcs -s 看有没有超过5个,如果有请执行下面2的命令:
2、ipcs -s | perl -ane '/^0x00000000/ && `ipcrm -s $F[1]`'
3、重启Apache服务。(到此问题解决!)
ipcs -s | grep apache | perl -e 'while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}'
网上有人说用上面这条命令或者重启服务器之后也可以解决,没有尝试,因为我用命令2之后已经解决了!

 

http://zhisheng00.javaeye.com/blog/652107