nginx 승객_루트가 유효한 승객 보석 위치를 허용하지 않습니다.

nginx 승객_루트가 유효한 승객 보석 위치를 허용하지 않습니다.

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;

둘 다 유효한 경로입니다.

나는 이 게시물을 보았다 :nginx-승인하지 않음-승객-루트-옵션그리고 달려가려고 했어

 apt-get remove nginx

하지만 nginx가 설치되지 않았다는 메시지가 나타납니다. RVM + Passenger + Nginx를 사용하고 있습니다.

gem install 승객을 실행하여 승객을 설치했습니다. Nginx는 이전에 설치되었으며 nginx.conf 파일에서 새 버전의 승객 경로를 수정해 보았습니다. 두 가지가 함께 작동하도록 하려면 추가 작업을 수행해야 합니까?

내가 달리려고 하면sudo 승객 설치-nginx-모듈

다음 메시지를 받았습니다.

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;
      ...
  }

그것은 오래된 Ruby 경로입니다. rvm info를 실행하면 적절한 ruby2.0 경로를 얻게 됩니다.

관련 정보