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