Curl-ssl HTTPS://RVM.IO/MPAPIS.ASC | GPG--import
Curl-l Https://get.rvm.io | Bash-s Stable
source/etc/profile.d/rvm.sh
RVM Requirements
RVM Install 2.2.3
RVM Use 2.2.3--default
Gem Sources--remove https://rubygems.org/
Gem Sources-a https://ruby.taobao.org/
Gem Sources-l
Gem Install rails-v=4.2
Gem Install Bundler
Gem install json-v ' 1.8.3 '
Gem install minitest-v ' 5.8.0 '
Gem install activesupport-v ' 4.2.3 '
Gem install actionview-v ' 4.2.3 '
Gem install actionpack-v ' 4.2.3 '
Gem install activejob-v ' 4.2.3 '
Gem install actionmailer-v ' 4.2.3 '
Gem install actionpack-action_caching-v ' 1.1.1 '
Gem install actionpack-xml_parser-v ' 1.0.2 '
Gem install activemodel-v ' 4.2.3 '
Gem install activerecord-v ' 4.2.3 '
Gem install coderay-v ' 1.1.0 '
Gem install railties-v ' 4.2.3 '
Gem install jquery-rails-v ' 3.1.4 '
Gem install mysql2-v ' 0.3.20 '
Gem install net-ldap-v ' 0.3.1 '
Gem install protected_attributes-v ' 1.1.3 '
Gem install ruby-openid-v ' 2.3.0 '
Gem install rack-openid-v ' 1.4.2 '
Gem install rails-v ' 4.2.3 '
Gem install rbpdf-v ' 1.18.6 '
Gem install redcarpet-v ' 3.1.2 '
Gem install request_store-v ' 1.0.5 '
Bundle install--without Development Test Rmagick #完成redmine依赖包的安装
Rake Generate_secret_token
Rails_env=production Bundle EXEC Rake db:migrate
Rails_env=production Bundle EXEC Rake Redmine:load_default_data
Bundle EXEC Rails Server webrick-e production-b 0.0.0.0
Passenger-install-nginx-module
/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf
Install Nginx+redmine 3.1.0 notes under CentOS 6.5