Linux上Aapache 启动不了,报错信息:suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

报错信息:    
[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 (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'
网上有人说用上面这条命令或者重启服务器之后也可以解决,没有尝试,因为我用命令2之后已经解决了!


网上搜罗的东东,试了几次,确实还管用,但磁盘满的时候势必要清理磁盘的噢。


你可能感兴趣的:(linux,信息,enabled)