nginx passenger_root不接受有效的乘客gem位置

我试图将passenger_root和passenger_ruby添加到我的nginx.conf文件中,但是当我尝试并重新启动NGINX时,我收到消息:

Starting nginx: nginx: [alert] 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 '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) nginx. 

在我的nginx.conf文件中:

 http { passenger_root /home/deploy/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.14; passenger_ruby /home/deploy/.rvm/wrappers/ruby-2.0.0-p247/ruby; 

这些都是有效的path

我看了这个post: nginx-not-acknowledging-passenger-root-option并试图运行

  apt-get remove nginx 

但它告诉我nginx没有安装。 我正在使用RVM + Passenger + Nginx

我通过运行gem安装乘客安装乘客。 Nginx之前已经安装好了,我只是尝试在nginx.conf文件中修改乘客的新版本的path。 我需要额外做些什么来使这两个工作在一起吗?

如果我尝试运行sudo passenger-install-nginx-module

我收到消息:

 Nginx with Passenger support was successfully installed. Please edit your Nginx configuration file (probably /opt/nginx/conf/nginx.conf), and set the passenger_root and passenger_ruby configuration options in the 'http' block, like this: http { ... passenger_root /var/lib/gems/1.9.1/gems/passenger-3.0.19; passenger_ruby /usr/bin/ruby1.9.1; ... } 

那是旧的rubypath…如果我运行rvm信息,我得到适当的ruby2.0path