나는 튜토리얼 http://craiccomputing.blogspot.com/2010/10/passenger-3-nginx-and-rvm-on-mac-os-x.html을 겪었고 모든 것이 정상이었습니다. 오류가 없었습니다.
Nginx with Passenger support was successfully installed.
The Nginx configuration file (/opt/nginx/conf/nginx.conf)
must contain the correct configuration options in order for Phusion Passenger
to function correctly.
This installer has already modified the configuration file for you! The
following configuration snippet was inserted:
http {
...
passenger_root /home/alex/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.14;
passenger_ruby /home/alex/.rvm/wrappers/ruby-1.9.3-p194/ruby;
...
}
After you start Nginx, you are ready to deploy any number of Ruby on Rails
applications on Nginx.
그러나 나는 그것을 시작할 수 없습니다.
alex@ubuntu:~$ sh -x /etc/init.d/nginx start
sh: 0: Can't open /etc/init.d/nginx
sudo /etc/init.d/nginx start
sudo: /etc/init.d/nginx: command not found
디렉토리 opt/nginx
가 존재하고 그 안에 파일이 있습니다. Localhost:80
작동하지 않습니다.
어떤 제안?