简体   繁体   中英

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

When Passenger automatically installs nginx, I can't launch it.

nginx -v

Returns there's no nginx installed.

How can I fix this?

Notice that passenger-install-nginx-module asks you where to install Nginx to? The nginx binary is in there. Make sure the appropriate directory is in your $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.

You need install Nginx. the webserver.

If you use passenger 3 in standalone, you just need launch passenger start command

I solved this.

Actually, Passenger did install nginx, it just wasn't in the default category.

I recommend to tell passenger to install nginx in /usr/local/nginx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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