为什么 Apache 无法启动?

为什么 Apache 无法启动?

这是我的错误日志:

[Sat Jul 14 21:39:21 2012] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations
[Sat Jul 14 21:39:21 2012] [alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
[Sat Jul 14 21:39:21 2012] [alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
[Sat Jul 14 21:39:23 2012] [alert] No active workers found... Apache is exiting!
[Sat Jul 14 21:39:36 2012] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Jul 14 21:39:36 2012] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations
[Sat Jul 14 21:39:36 2012] [alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
[Sat Jul 14 21:39:36 2012] [alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
[Sat Jul 14 21:39:38 2012] [alert] No active workers found... Apache is exiting!
[Sat Jul 14 21:43:17 2012] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Jul 14 21:43:17 2012] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations
[Sat Jul 14 21:43:17 2012] [alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread

我该如何修复这个问题以及它有什么问题?

答案1

我找到了答案。解决方案如下:

添加ulimit -s 512到您的 apacheenvvars文件(尝试/etc/apache2/envvars)。

资料来源:

相关内容