重启nginx:nginx:[alert]无法启动Phusion Passenger看门狗,因为它的可执行文件

时间:2013-07-20 10:24:45

标签: ruby ruby-on-rails-3.2 passenger

我无法启动服务器。收到此错误:

  Restarting nginx: nginx: [alert] Unable to start the Phusion Passenger watchdog because its executable (/usr/local/rvm/gems/ruby-2.0.0-p0/gems/passenger-4.0.0.rc4/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'passenger_root' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'passenger_root' directive, whichever is applicable. (-1: Unknown error)

实际上,我的rvm列表o / p是

rvm rubies

=> ruby-1.9.3-p448 [ i686 ]
* ruby-2.0.0-p0 [ i686 ]

# => - current
# =* - current && default
#  * - default

对于当前的应用程序,我使用的是ruby 1.9.3和rails 3.2.12。但是我的Passenger正在使用ruby-2.0.0-p0而不是ruby-1.9.3

有人可以帮我吗?我的服务器已关闭: - (

1 个答案:

答案 0 :(得分:0)

Passenger采用您在passenger_ruby文件nginx.conf中设置的内容,例如:

passenger_root /home/dev/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.5;
passenger_ruby /home/dev/.rvm/wrappers/ruby-1.9.3-p448/ruby;