gem install passenger
passenger-install-nginx-module 1. Yes: download, compile and install Nginx for me. (recommended) Please specify a prefix directory [/opt/nginx]: /opt/nginx
vi /opt/nginx/conf/nginx.conf server { listen 80; server_name localhost; root /xx/xx/rails_app/public; passenger_enabled on; rails_env production; }
/opt/nginx/sbin/nginx /opt/nginx/sbin/nginx -s quit