li
  当前位置:主页 > 问题集锦 > 文章内容
li
No space left on device: mod_rewrite: could not create rewrite_log_lock
来源: www.ixdba.net  作者: IXDBA.NET官方    时间:2008-03-17   阅读:24  
本文章共2721字,分2页,当前第1页,快速翻页:
 

 When you see the error;

No space left on device: mod_rewrite: could not create rewrite_log_lock

in your Apache logs or when Apache fails to start, try the following;

ipcs -s

—— Semaphore Arrays ——–
key semid owner perms nsems
0×00000000 327680 nobody 600 1
0×00000000 1540097 nobody 600 1
0×00000000 6225922 nobody 600 1
0×00000000 9175043 nobody 600 1
0×00000000 9306116 nobody 600 1
0×00000000 10027013 nobody 600 1

If you see more than 5 of them, you may need to clear them with the following command;

ipcs -s | perl -ane '/^0x00000000/ && `ipcrm -s $F[1]`'

  

案例1:

       Sometimes Apache refuses to start. When this happens sweat instantly appears on your forehead because without apache running none of your website's are available. Here are some things you can try based on problems we've come across. Hitting the reset switch isn't the solution and not something you should do when you come across a problem like this.

Starting Apache

The correct way to start, stop or restart apache is by using the apachectl program. Such as:-
apachectl graceful
apachectl stop
apachectl restart

Checking Apache configuration

Apachectl can also be used to check the apache configuration, such as:-
apachectl configtest
This will return warnings and errors.

Check the Apache error logs

Take a look at the error logs (usually "/var/log/httpd/") and see if you can find what's causing the problem.

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down

This is caused by one or more processes running on the 443 (secure socket) port. To fix this problem first find the process ID's that are running on port 443:-
fuser 443/tcp
This will return results which look something like:-
443/tcp: xxxx yyyy zzzz <- processes using 443
Where xxxx yyyy & zzzz are numbers for the process ID's. Now kill the processes with:-
Kill -9 xxxx yyyy & zzzz

Apache will not start. Error log contains:-

[emerg] (28)No space left on device: Couldn't create accept lock
or
[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed
Checking your disk shows that you have plenty of space. The problem is that apache didn't shut down properly, and it's left myriads of semaphore-arrays left, owned by my apache-user. Run:-
IXDBA.NET社区论坛
ipcs -s | grep nobody
Removing these semaphores immediately should solve the problem and allow apache to start.
ipcs -s | grep nobody | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'

Other errors

If you encounter an error that isn't listed here, put it in to google and give it a search. Someone else will have come across the problem before. Remember to remove any details from the search that are specific to your machine, such as your IP.

案例2:

apache claims 'no space on device'

keywords : apache ipcs semaphore no space on device lock accept

tested with apache 2.0.43 and 2.0.45



阅读更多内容1 · 2 · 下一页>>


  上一篇: 问题小结:Linux下oracle常见安装...   下一篇: shm.create(): error creating s...
li
 §相关评论  
 热点文章

·IT168技术卓越奖年会北京召开在
·No space left on device: mod
·shm.create(): error creating
·mysql占用cpu特别高问题的解决
·Can't locate Mail/Send.pm in
·Allowed memory size of 83886
·overwritten -- Unclean shutd
·Apache重启失败:name-based s
·(13)Permission denied: make_
·SQL0964C The transaction log
·delete删除大表:SQL0964C The
li
 编辑推荐
·IT168技术卓越奖年会北京召开在
·No space left on device: mod
·shm.create(): error creating
·mysql占用cpu特别高问题的解决
·Can't locate Mail/Send.pm in
·Allowed memory size of 83886
·overwritten -- Unclean shutd
·Apache重启失败:name-based s
·(13)Permission denied: make_
·SQL0964C The transaction log
·delete删除大表:SQL0964C The
li
 相关篇章
·问题小结:Linux下oracle常见安装...
·光纤网卡和HBA卡有什么区别 ?
·ORA-01207: old control file完全...
·问题解疑:关于Oracle隐式offlin...
·IT168技术卓越奖年会北京召开在即
·apache下安装AWStats步骤以及问题
·数据库启动遭遇ORA-00600: [kelt...
·Oracle Database 11g 7月11日发布
·linux中tar f 参数顺序问题
·ReiserFS将何去何从?我们应该怎...
·shm.create(): error creating s...
·mysql占用cpu特别高问题的解决方...
·Can't locate Mail/Send.pm in @...
·Allowed memory size of 8388608...
·overwritten -- Unclean shutdow...
·Apache重启失败:name-based sha...
·(13)Permission denied: make_so...
·SQL0964C The transaction log f...
·delete删除大表:SQL0964C The tr...
·mysql ERROR 1016 (HY000): Can'...
 
li
设为首页 | 关于我们 | 技术服务 | 收藏本站 | 网站地图 | 联系方式 | 本站友情连接