我有一个装有Ubuntu 12.04的远程服务器,我怎么能升级Phusion Passenger Nginx版本?我应该重新编译nginx吗?
更新
我刚刚运行了gem update passenger
,然后在nginx conf文件中更改了乘客版本。
之后我得到了:
nginx: [alert] Unable to start the Phusion Passenger watchdog because its executable (/usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.38/buildout/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)
答案 0 :(得分:4)
您需要重新运行passenger-install-nginx-module。请参阅官方手册中的升级说明:http://www.modrails.com/documentation/Users%20guide%20Nginx.html#rubygems_generic_install
答案 1 :(得分:4)
最近我将ruby从版本2.1.3升级到2.1.5并遇到了同样的问题。我通过以下两步修复它:
第1步:重新安装nginx模块
如果您使用rbenv
乘客安装-nginx的模块
使用rvm
rvmsudo passenger-install-nginx-module
第2步:重启nginx
sudo service nginx restart