Delete .svn files under current folder
find ./ -name ".svn" | xargs rm -Rf
ways to restart apache
sudo /sbin/service httpd restart
sudo /usr/local/apache2/bin/apachectl -k restart
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/
Rails does not play well with concurrency, just Mongrel by itself would be slow at serving up static content like images, CSS files, etc., and it would necessarily be limited to a single request at a time.
So we’re going to be using Apache 2.2 as the front-end for Mongrel, which allows us to both serve up static content like it’s going out of style, but also to use a huge wealth of modules, like mod_deflate, which will improve your site’s responsiveness and download time. We’ll run a cluster of Mongrel servers locally, and route requests through Apache’s mod_proxy_balancer, which uses a sophisticated algorithm to make sure all the Mongrel servers feel equally loved.
find ./ -name ".svn" | xargs rm -Rf
ways to restart apache
sudo /sbin/service httpd restart
sudo /usr/local/apache2/bin/apachectl -k restart
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/
Rails does not play well with concurrency, just Mongrel by itself would be slow at serving up static content like images, CSS files, etc., and it would necessarily be limited to a single request at a time.
So we’re going to be using Apache 2.2 as the front-end for Mongrel, which allows us to both serve up static content like it’s going out of style, but also to use a huge wealth of modules, like mod_deflate, which will improve your site’s responsiveness and download time. We’ll run a cluster of Mongrel servers locally, and route requests through Apache’s mod_proxy_balancer, which uses a sophisticated algorithm to make sure all the Mongrel servers feel equally loved.
本文介绍了一种使用Mongrel和Apache2.2部署Rails应用的方法。通过Apache作为前端服务器,不仅可以高效提供静态内容,还能利用其丰富的模块提升网站响应速度及下载时间。同时,通过mod_proxy_balancer模块实现负载均衡。
114

被折叠的 条评论
为什么被折叠?



