本文介绍了无法启动 Phusion 乘客看门狗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Ubuntu 10.04 上使用 Apache2 完成了 Phusion 乘客设置.每当我重新启动 Apache 服务器时,我都会收到以下错误消息,并且 Rails 应用程序没有运行.

I have done a Phusion Passenger setup on Ubuntu 10.04, with Apache2. Whenever I restart the Apache server I got the following error message, and the Rails application is not running.

[error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'PassengerRoot' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'PassengerRoot' directive, whichever is applicable.

推荐答案

我在从源代码编译时遇到了同样的问题,但它是间歇性的,这真的很令人沮丧(我认为它必须使用 Rails 环境).我们无法使用passenger-install-apache2-module/passenger-install-nginx-module 脚本,因为我们需要定制的nginx 安装.

I ran into the same problem when compiling from source, but it was intermittent, which was really frustrating (I think it has to w/ Rails environments). We couldn't use the passenger-install-apache2-module/passenger-install-nginx-module scripts, because we needed a customized nginx installation.

我最终解决了这个问题,无论 passenger-config --root 是什么,然后运行:rake nginx.

I finally fixed the problem by going to whatever the passenger-config --root is, then running: rake nginx.

2016 年 2 月更新(由乘客作者):

官方支持的编译PassengerAgent 的方法(无需同时编译Nginx,如passenger-install-nginx-module 所做的那样)是使用以下命令:

The officially supported method to compile PassengerAgent (without also compiling Nginx, as passenger-install-nginx-module does) is with this command:

passenger-config compile-agent

Passenger 5.0.26 及更高版本会自动检测此 StackOverflow 问题中描述的错误,并会自动建议运行上述命令.

Passenger 5.0.26 and later will automatically detect the error described in this StackOverflow question, and will automatically suggest running the above command.

这篇关于无法启动 Phusion 乘客看门狗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 16:41