ROR环境部署

安装配置ruby on rails
1.yum install readline-devel
2. : wget http://rubyforge.org/frs/download.php/68719/ruby-enterprise-1.8.7-2010.01.tar.gz

 tar xvf ruby-enterprise-1.8.7-2010.01.tar.gz

3cd 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

 7source /etc/profile 启用配置

 8ruby -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 �Cv 2.3.5

################gem update �Csystem

################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;    }     ...}

你可能感兴趣的:(ROR环境部署)