我经历了一个教程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也不起作用.
有什么建议?
解决方法:
安装Nginx的正常方法是通过apt-get(或Synaptic或SW Center),并且不会在/ opt,AFAIK中放置任何内容.在这种情况下,您只需发出以下命令即可停止/启动它:
sudo service Nginx start|stop|restart (etc)
如果你的Nginx安装在/ opt中,我怀疑它会触及/etc/init.d目录…
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。