简体   繁体   English

我无法安装Phusion Passenger来运行Rails

[英]I can't install Phusion Passenger to run Rails

The problem is simple. 问题很简单。

I use the following command to install Passenger 我使用以下命令安装乘客

passenger-install-nginx-module 乘客安装nginx模块

When Passenger automatically installs nginx, I can't launch it. 乘客自动安装nginx时,我无法启动它。

nginx -v nginx -v

Returns there's no nginx installed. 返回没有安装的nginx。

How can I fix this? 我怎样才能解决这个问题?

Notice that passenger-install-nginx-module asks you where to install Nginx to? 请注意,passenger-install-nginx-module询问您将Nginx安装到哪里? The nginx binary is in there. Nginx二进制文件在其中。 Make sure the appropriate directory is in your $PATH. 确保相应的目录位于$ PATH中。 If you don't know what $PATH is or how to use it then you should read a book about basic Unix/Linux command line skills. 如果您不知道$ PATH是什么或如何使用它,则应该阅读有关Unix / Linux基本命令行技能的书。

You need install Nginx. 您需要安装Nginx。 the webserver. 网络服务器。

If you use passenger 3 in standalone, you just need launch passenger start command 如果您独立使用乘客3,则只需要启动passenger start命令

I solved this. 我解决了

Actually, Passenger did install nginx, it just wasn't in the default category. 实际上,Passenger确实安装了nginx,但它不在默认类别中。

I recommend to tell passenger to install nginx in /usr/local/nginx 我建议告诉乘客在/ usr / local / nginx中安装Nginx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM