旅客服务器定期关机的主要原因是什么?

在我的rails应用程序中,我正在使用

Apache + ruby 1.9.2p180 + Rails 3.0.5 + Phusion Passenger version 3.0.13

有人可以告诉我为什么我的乘客定期closures。 有人请帮忙

 This is the last error after which the application stops working [Fri Aug 31 02:07:23 2012] [error] [client 141.212.121.10] Premature end of script headers: [ pid=17952 thr=1 file=ext/apache2/Hooks.cpp:817 time=2012-08-31 02:07:23.257 ]: The backend application (process 13680) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application. [Fri Aug 31 04:20:55 2012] [notice] child pid 27795 exit signal Segmentation fault (11) [Fri Aug 31 04:20:56 2012] [notice] child pid 22071 exit signal Segmentation fault (11) [Fri Aug 31 04:21:03 2012] [notice] child pid 13025 exit signal Segmentation fault (11) [Fri Aug 31 04:21:04 2012] [notice] child pid 24538 exit signal Segmentation fault (11) [Fri Aug 31 04:21:06 2012] [notice] child pid 17065 exit signal Segmentation fault (11) I am using ruby 1.9.2p180 Rails 3.0.5 Phusion Passenger version 3.0.13 

提前致谢。

错误说:“请检查这个应用程序是否有崩溃的错误。”

你有没有尝试删除你的Web应用程序,并尝试一个简单的index.html页面?

如果它稳定,那么问题不是来自Passenger配置,而是来自您的应用程序。 在这种情况下,通过在应用程序中添加loger来增加日志详细程度,每一步都有一个用户交互。

还要检查你使用的是Apache2-mpm-prefork而不是apache2-mpm-worker。 这个apache2-mpm-worker是一个多线程版本,不幸的是乘客不支持使用apache2的多线程。 请尝试执行以下命令来检查它是否安装:

 aptitude show apache2-mpm-worker aptitude show apache2-mpm-prefork 

这个命令显示了什么?

 passenger-install-apache2-module 

你应该拥有一切绿色。