分类: Python/Ruby
2011-09-16 18:52:02
tar xvf ruby-enterprise-1.8.7-2010.01.tar.gz
3:cd ruby-enterprise-1.8.7-2010.01
4:./installer
5: ln -s /opt/ruby-enterprise-1.8.7-2010.01 /opt/ruby-enterprise
#####路径/opt/app
6:编辑/etc/profile
加入export PATH=/opt/ruby-enterprise/bin:$PATH
7:source /etc/profile 启用配置
8:ruby -v
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.01
默认会安装 actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fastthread (1.0.7)
passenger (2.2.10)
rack (1.1.0, 1.0.1)
rails (2.3.5)
rake (0.8.7)
gem install rails –v 2.3.5
################gem update –system
################gem install rails
gem install passenger ###升级passenger
passenger-install-nginx-module
键入/opt/nginx
安装完成后配置
/opt/nginx/conf目录下的nginx.conf文件
http { ... server { listen 80; server_name www.*****.com; root /webapps/*****/public; passenger_enabled on; } ...}