轻松架构apache+mongrel+rails+linux服务器

江城守望者 2007-05-28

1.首先在服务器上搭建RAILS环境并装mongrel 和apache

#install ruby

apt-get install irb libdbm-ruby1.8 libgdbm-ruby1.8 libmysql-ruby1.8 libmysqlclient14 libopenssl-ruby1.8 libruby1.8-dbg mysql-common ri ri1.8 ruby1.8-dev

#install rubygem

#http://rubyforge.org/projects/rubygems/

wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz

tar zxfv rubygems-0.9.0.tgz

cd rubygems-0.9.0

ruby setup.rb

gem update –system

#install Rails and dependencies

gem install rails –include-dependencies

#install Mysql

apt-get install mysql-server

#intall Mongrel

apt-get install build-essentia l

gem install mongrel –include-dependencies

相关推荐

AllenYoung / 0评论 2014-07-04
jizhename / 0评论 2013-09-03