0

我在我的 Rails 应用程序中使用Passenger gem。我不知道如何,但它的路径从 ruby​​1.9.3 更改为 ruby​​2.0.0。当我重新启动我的 nginx 服务器时,我收到错误:

 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)

当我运行这个命令时:

rake nginx

它给:

Don't know how to build task 'nginx'
/usr/local/rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)

我不知道如何使这项工作。有谁能够帮助我?

4

1 回答 1

0

成功了!

在我的 /opt/nginx 中,为 ruby​​ 2.0.0 提供了乘客路径,我将其更改为 ruby​​ 1.9.3 并工作!

于 2013-07-25T08:36:19.023 回答