安装 passenger on RVM

安装依赖库
sudo apt-get install libcurl4-openssl-dev


安装 passenger
gem install passenger
rvmsudo passenger-install-nginx-module


配置自启动脚本
[url]https://github.com/RobinWu/snippets/tree/master/shell[/url]


配置rails
sudo /etc/nginx/nginx.conf
    server {
        server_name www.foo.com;
        listen 80;
        root /webapps/foo/public;
        passenger_enabled on;
        passenger_use_global_queue on;
    }


引用

http://www.modrails.com/documentation/Users%20guide%20Nginx.html
https://gist.github.com/216549

你可能感兴趣的:(java,html,nginx,脚本,Rails)