Apache启动失败;
错误日志提示如下:No space left on device: mod_jk: could not create jk_log_lock Configuration Failed
2) 解决步骤1)切换到root账号,先用下面的这个命令检查一下哪个用户的信号量比较多:
#ipcs -a
2)然后关掉那个用户的apache,用下面这个命令删除信号量(注意修改用户名):
#ipcs -s | grep username| gawk '{ print $2 }' | xargs -n 1 ipcrm sem
3)最后重启Apache
问题解决。
3) 操作实例a) 启动失败
[[email protected] init.d]# ./httpd start
Starting httpd: [FAILED]
b) 查看日志[[email protected] logs]# tail -f error_log
[Thu Apr 12 02:21:21 2012] [crit] (28)No space left on device: mod_jk: could not create jk_log_lock
Configuration Failed
c) 检查信号量[[email protected] init.d]# ipcs -a
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x740082aa 1114112 root 600 4 0
0x7400827f 1802241 root 600 4 0
0x00000000 2162690 root 644 52 2
0x7400827e 1769475 root 600 4 0
0x00000000 2195460 root 644 16384 2
0x00000000 2228229 root 644 268 2
0x00000000 2260998 gdm 600 393216 2 dest
------ Semaphore Arrays --------
key semid owner perms nsems
0x000000a7 0 root 600 1
0x00000000 14385153 daemon 600 1
0x00000000 14417922 daemon 600 1
0x00000000 14450691 daemon 600 1
0x00000000 14712836 daemon 600 1
0x00000000 14745605 daemon 600 1
0x00000000 14778374 daemon 600 1
0x00000000 15040519 daemon 600 1
0x00000000 15073288 daemon 600 1
0x00000000 15106057 daemon 600 1
0x00000000 16515082 daemon 600 1
0x00000000 16547851 daemon 600 1
0x00000000 16580620 daemon 600 1
0x00000000 16678925 daemon 600 1
0x00000000 16711694 daemon 600 1
0x00000000 16744463 daemon 600 1
0x00000000 16842768 daemon 600 1
0x00000000 16875537 daemon 600 1
0x00000000 16908306 daemon 600 1
0x00000000 17006611 daemon 600 1
0x00000000 17039380 daemon 600 1
0x00000000 17072149 daemon 600 1
0x00000000 17170454 daemon 600 1
0x00000000 17203223 daemon 600 1
0x00000000 17235992 daemon 600 1
0x00000000 17334297 daemon 600 1
0x00000000 17367066 daemon 600 1
0x00000000 17399835 daemon 600 1
0x00000000 17498140 daemon 600 1
0x00000000 17530909 daemon 600 1
0x00000000 17563678 daemon 600 1
0x00000000 17661983 daemon 600 1
0x00000000 17694752 daemon 600 1
0x00000000 17727521 daemon 600 1
0x00000000 18153506 daemon 600 1
0x00000000 18186275 daemon 600 1
0x00000000 18219044 daemon 600 1
0x00000000 18743333 daemon 600 1
0x00000000 18776102 daemon 600 1
0x00000000 18808871 daemon 600 1
0x00000000 18907176 daemon 600 1
0x00000000 18939945 daemon 600 1
0x00000000 18972714 daemon 600 1
0x00000000 20217899 daemon 600 1
0x00000000 20250668 daemon 600 1
0x00000000 20283437 daemon 600 1
0x00000000 20381742 daemon 600 1
0x00000000 20414511 daemon 600 1
0x00000000 20447280 daemon 600 1
0x00000000 20873265 daemon 600 1
0x00000000 20906034 daemon 600 1
0x00000000 20938803 daemon 600 1
0x00000000 21200948 daemon 600 1
0x00000000 21233717 daemon 600 1
0x00000000 21266486 daemon 600 1
0x00000000 21364791 daemon 600 1
0x00000000 21397560 daemon 600 1
0x00000000 21430329 daemon 600 1
0x00000000 22347834 daemon 600 1
0x00000000 22380603 daemon 600 1
0x00000000 22413372 daemon 600 1
0x00000000 22511677 daemon 600 1
0x00000000 22544446 daemon 600 1
0x00000000 22577215 daemon 600 1
0x00000000 23330880 daemon 600 1
0x00000000 23363649 daemon 600 1
0x00000000 23396418 daemon 600 1
0x00000000 23494723 daemon 600 1
0x00000000 23527492 daemon 600 1
0x00000000 23560261 daemon 600 1
0x00000000 23658566 daemon 600 1
0x00000000 23691335 daemon 600 1
0x00000000 23724104 daemon 600 1
0x00000000 23822409 daemon 600 1
0x00000000 23855178 daemon 600 1
0x00000000 23887947 daemon 600 1
0x00000000 24641612 daemon 600 1
0x00000000 24674381 daemon 600 1
0x00000000 24707150 daemon 600 1
0x00000000 24805455 daemon 600 1
0x00000000 24838224 daemon 600 1
0x00000000 24870993 daemon 600 1
0x00000000 25460818 daemon 600 1
0x00000000 25493587 daemon 600 1
0x00000000 25526356 daemon 600 1
0x00000000 25788501 daemon 600 1
0x00000000 25821270 daemon 600 1
0x00000000 25854039 daemon 600 1
0x00000000 27099224 daemon 600 1
0x00000000 27131993 daemon 600 1
0x00000000 27164762 daemon 600 1
0x00000000 27426907 daemon 600 1
0x00000000 27459676 daemon 600 1
0x00000000 27492445 daemon 600 1
0x00000000 27590750 daemon 600 1
0x00000000 27623519 daemon 600 1
0x00000000 27656288 daemon 600 1
0x00000000 27918433 daemon 600 1
0x00000000 27951202 daemon 600 1
0x00000000 27983971 daemon 600 1
0x00000000 28246116 daemon 600 1
0x00000000 28278885 daemon 600 1
0x00000000 28311654 daemon 600 1
0x00000000 28409959 daemon 600 1
0x00000000 28442728 daemon 600 1
0x00000000 28475497 daemon 600 1
0x00000000 28573802 daemon 600 1
0x00000000 28606571 daemon 600 1
0x00000000 28639340 daemon 600 1
0x00000000 28901485 daemon 600 1
0x00000000 28934254 daemon 600 1
0x00000000 28967023 daemon 600 1
0x00000000 29884528 daemon 600 1
0x00000000 29917297 daemon 600 1
0x00000000 29950066 daemon 600 1
0x00000000 30048371 daemon 600 1
0x00000000 30081140 daemon 600 1
0x00000000 30113909 daemon 600 1
0x00000000 30212214 daemon 600 1
0x00000000 30244983 daemon 600 1
0x00000000 30277752 daemon 600 1
0x00000000 30539897 daemon 600 1
0x00000000 30572666 daemon 600 1
0x00000000 30605435 daemon 600 1
0x00000000 30703740 daemon 600 1
0x00000000 30736509 daemon 600 1
0x00000000 30769278 daemon 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
发现daemon用户占用信号量较多。
d) 删除信号量注意用户名已换为daemon。
[[email protected] init.d]# ipcs -s | grep daemon| gawk '{ print $2 }' | xargs -n 1 ipcrm sem
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
e) 再检查信号量[[email protected] init.d]# ipcs -a
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x740082aa 1114112 root 600 4 0
0x7400827f 1802241 root 600 4 0
0x00000000 2162690 root 644 52 2
0x7400827e 1769475 root 600 4 0
0x00000000 2195460 root 644 16384 2
0x00000000 2228229 root 644 268 2
0x00000000 2260998 gdm 600 393216 2 dest
0x00000000 2293767 root 600 7296 4 dest
------ Semaphore Arrays --------
key semid owner perms nsems
0x000000a7 0 root 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
已正常。
f) 重启Apache[[email protected] init.d]# ./httpd start
Starting httpd: [ OK ]
[[email protected] init.d]#
重启成功。
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。