Apache起不来,报No space left on device: Couldn't create accept lock
来源:互联网 发布:软件设计师证书 编辑:程序博客网 时间:2024/06/03 02:26
今天早上,罗明在搭建测试环境的时候,发现启动MA应用后,访问总是出错。报错特别快,怀疑是apache没有起来,telnet apache端口,发现果然没有起来。 但是启动脚本显示是已经成功起来,改成访问jboss端口就可以了。 但是问题总是要解决。我以前遇到类似的问题,就是访问jboss端口是可以的,但是访问apache端口则总是报错,但是是报404的错误,说明apache已经起来,但是是mod_jk出错了。具体可以参见笔者以前写的一篇文章:后翌虚拟机环境搭建日志(简言之,就是添加JkMountCopy All配置项)。 一边单独启动apache,一边查看log日志: 发现报了这么一个奇怪的错误: 以为是空间不足,造成无法创建锁文件,但是df -h察看,发觉不是这个问题。 google了一下,发现早已经有人遇到同样的问题了。 察看发觉有一大堆的ipc使用,需要干掉。 清除命令: 再次grep一下,发现已经没有了。 然后启动Apache即可。 如果有权限的话,可以修改这些限制: Then load these settings with the command:sysctl -p Your Apache process should now be able to create the needed semaphores and run properly. 说明:kernel.msgmni 在root下可用sysctl kernel.msgmni检查该参数: 也可以在命令行下,使用sysctl -w kernel.msgmni=XXX重新设定。Apache起不来,报No space left on device: Couldn't create accept lock
forrest@ubuntu:~$ telnet 10.20.142.12 2080Trying 10.20.142.12...telnet: Unable to connect to remote host: Connection refused
forrest@ubuntu:~$ telnet 10.20.142.12 2087Trying 10.20.142.12...Connected to 10.20.142.12.Escape character is '^]'.
scrm@intlqa142012x:[/home/scrm/work/intl-myalibaba/deploy/bin]./apachectl restart./apachectl restart: httpd not running, trying to start
scrm@intlqa142012x:[/home/scrm/work/intl-myalibaba/deploy/logs]tailf error_log [Fri Oct 08 18:41:35 2010] [warn] pid file /home/scrm/work/intl-myalibaba/deploy/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?[Fri Oct 08 18:41:35 2010] [emerg] (28)No space left on device: Couldn't create accept lock[Fri Oct 08 18:42:44 2010] [warn] pid file /home/scrm/work/intl-myalibaba/deploy/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?[Fri Oct 08 18:42:44 2010] [emerg] (28)No space left on device: Couldn't create accept lock
[emerg] (28)No space left on device: Couldn't create accept lock。
scrm@intlqa142012x:[/home/scrm/work/intl-myalibaba/deploy/logs]df -hFilesystem Size Used Avail Use% Mounted on/dev/xvda3 4.9G 178M 4.4G 4% //dev/xvda1 99M 11M 83M 12% /bootnone 2.6G 0 2.6G 0% /dev/shm/dev/xvda8 68G 48G 17G 74% /home/dev/xvda5 2.9G 42M 2.7G 2% /tmp/dev/xvda2 9.7G 6.1G 3.1G 67% /usr/dev/xvda6 2.9G 166M 2.6G 6% /var10.20.131.137:/home/efs/www 34G 23G 8.8G 73% /mnt/efs/www10.20.134.136:/home/efs/www/escrow 34G 3.2G 29G 10% /mnt/escrow
scrm@intlqa142012x:[/home/scrm/work/intl-myalibaba/deploy/logs]ipcs -s | grep scrm 0x00000000 1212419 scrm 600 1 0x00000000 1245188 scrm 600 1 0x00000000 1277957 scrm 600 1 0x00000000 18579474 scrm 600 1 0x00000000 18612243 scrm 600 1 0x00000000 18645012 scrm 600 1 0x00000000 53444632 scrm 600 1 0x00000000 53477401 scrm 600 1 0x00000000 53510170 scrm 600 1 0x00000000 19890215 scrm 600 1 0x00000000 19922984 scrm 600 1 0x00000000 19955753 scrm 600 1 0x00000000 21692458 scrm 600 1 0x00000000 21725227 scrm 600 1 0x00000000 21757996 scrm 600 1 0x00000000 22347824 scrm 600 1 0x00000000 22380593 scrm 600 1 0x00000000 22413362 scrm 600 1 0x00000000 25296950 scrm 600 1 0x00000000 25329719 scrm 600 1 0x00000000 25362488 scrm 600 1 0x00000000 38895685 scrm 600 1 0x00000000 38928454 scrm 600 1 0x00000000 38961223 scrm 600 1 0x00000000 36438091 scrm 600 1 0x00000000 36470860 scrm 600 1 0x00000000 36503629 scrm 600 1 0x00000000 29720660 scrm 600 1 0x00000000 29753429 scrm 600 1 0x00000000 29786198 scrm 600 1 0x00000000 29884503 scrm 600 1 0x00000000 29917272 scrm 600 1 0x00000000 29950041 scrm 600 1 0x00000000 30539866 scrm 600 1 0x00000000 30572635 scrm 600 1 0x00000000 30605404 scrm 600 1 0x00000000 39059564 scrm 600 1 0x00000000 39092333 scrm 600 1 0x00000000 39125102 scrm 600 1 0x00000000 40697970 scrm 600 1 0x00000000 40730739 scrm 600 1 0x00000000 40763508 scrm 600 1
scrm@intlqa142012x:[/home/scrm/work/intl-myalibaba/deploy/logs]ipcs ------ Shared Memory Segments --------key shmid owner perms bytes nattch status ------ Semaphore Arrays --------key semid owner perms nsems ------ Message Queues --------key msqid owner perms used-bytes messages
scrm@intlqa142012x:[/home/scrm]for semid in `ipcs -s | grep scrm | cut -f2 -d" "`;> do ipcrm -s $semid; done
scrm@intlqa142012x:[/home/scrm]ipcs -s | grep scrm
admin@intlqa142012x:[/home/admin]ipcs -l------ Shared Memory Limits --------max number of segments = 4096max seg size (kbytes) = 32768max total shared memory (kbytes) = 8388608min seg size (bytes) = 1------ Semaphore Limits --------max number of arrays = 128max semaphores per array = 250max semaphores system wide = 32000max ops per semop call = 32semaphore max value = 32767------ Messages: Limits --------max queues system wide = 16max size of message (bytes) = 8192default max size of queue (bytes) = 16384
To change these parameters, modify the file /etc/sysctl.conf and add the following lines:kernel.msgmni = 1024kernel.sem = 250 256000 32 1024
-p Load in sysctl settings from the file specified or /etc/sysctl.conf if none given.admin@intlqa142012x:[/home/admin]sysctl -perror: permission denied on key 'net.ipv4.ip_forward'error: permission denied on key 'net.ipv4.conf.default.rp_filter'error: permission denied on key 'net.ipv4.conf.default.accept_source_route'error: permission denied on key 'kernel.sysrq'error: permission denied on key 'kernel.core_uses_pid'
该文件指定消息队列标识的最大数目,即系统范围内最大多少个消息队列。缺省设置:16。admin@intlqa142012x:[/home/admin]cat /proc/sys/kernel/msgmni 16
admin@intlqa142012x:[/home/admin]sysctl kernel.msgmnikernel.msgmni = 16
admin@intlqa142012x:[/home/admin]sysctl -w kernel.msgmni=32error: permission denied on key 'kernel.msgmni'
- Apache起不来,报No space left on device: Couldn't create accept lock
- Fixing Apache "No space left on device: Couldn't create accept lock" errors
- Apache: No space left on device: Couldn’t create accept lock
- Apache ERROR: No space left on device: AH00023: Couldn't create the ssl-cache mutex
- No space left on device: AH00023: Couldn't create the proxy mutex 解决方法
- mysql无法启动,报错 Can't start server: can't create PID file: No space left on device
- Can't start server: can't create PID file: No space left on device
- No space left on device: mod_rewrite: could not create rewrite_log_lock
- linux磁盘空间不足:Can't start server: can't create PID file: No space left on device
- Apache启动不了,报错信息:No space left on device
- No space left on device
- No space left on device
- No space left on device
- no space left on device
- No space left on device
- No space left on device
- No space left on device
- No space left on device
- 上位机
- 如何确定角色的绘制中心
- mmap
- LCC解读笔记
- 单例模式完全剖析
- Apache起不来,报No space left on device: Couldn't create accept lock
- asp导出Excel文档代码
- WEB前端开发中的性能调试工具(简记)
- mknod详解
- vsftpd搭建日志
- MySQL源码分析(1):主要模块及数据流
- linux下查看和添加PATH环境变量
- C/C++学习笔记之sizeof的学习
- 跟着学作图——SAS/GRAPH® for the Timid