apache启动错误
? 一台服务器重启,发现apache竟然不能启动,检查log,输出如下:
?
[Mon Nov 24 12:18:07.284592 2014] [mpm_worker:alert] [pid 4786:tid 140480065836800] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread [Mon Nov 24 12:18:07.284815 2014] [mpm_worker:emerg] [pid 5252:tid 140479788164864] (22)Invalid argument: ap_queue_info_set_idle failed. Attempting to shutdown process gracefully. [Mon Nov 24 12:18:07.284895 2014] [mpm_worker:alert] [pid 4963:tid 140480382359360] (11)Resource temporarily unavailable: AH00282: apr_thread_create: unable to create worker thread [Mon Nov 24 12:18:07.284913 2014] [mpm_worker:alert] [pid 5328:tid 140480065836800] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread [Mon Nov 24 12:18:07.284906 2014] [unixd:alert] [pid 5354:tid 140480382359360] (11)Resource temporarily unavailable: AH02162: setuid: unable to change to uid: 2
? Google之,试了无数种说法以后发现资源受限的说法比较靠谱。修改并保存,问题解决。但其实还是不懂怎么看得出来是什么错误,只好记下来再说了。
#修改 用户最大进程数 ulimit -u unlimited #保存修改到自启动文件 echo ulimit -u unlimited >>/etc/profile
?既然这个有问题,其他的资源同样可能有问题,如果不行可以逐个ulimit
试试。
?
?
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。