AH00157:无法将侦听器添加到pollset; 检查系统或用户限制

首先感谢你帮助…

Apache崩溃并获取日志文件,我该如何解决这个错误?

在/ var /日志/的httpd / error_log中

... ... [mpm_prefork:emerg] [pid 19347] (22)Invalid argument: AH00157: Couldn't add listener to pollset; check system or user limits ... ... 

Apache版本

 Apache/2.4.10 (Unix) 

ulimit -a

 [root@ns20 ~]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 515168 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 55000 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 515168 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited 

在/etc/security/limits.conf

 * soft nofile 55000 * hard nofile 60000 

免费-g

 [root@ns ~]# free -g total used free shared buffers cached Mem: 62 60 2 0 1 38 -/+ buffers/cache: 20 42 Swap: 1 0 0 

我解决了这个问题。

“在内核3.2.9到3.2.17的epollpath上有一个任意的限制(1000),导致apache在1001+进程中死锁”

https://bz.apache.org/bugzilla/show_bug.cgi?id=54502

解决scheme:更新你的内核

最好的祝福