2014年12月

centOS安装redmine

参考地址:http://www.redmine.org/projects/redmine/wiki/RedmineInstall
# rvm install 2.1.0
# rvm use 2.1.0
# cd /opt
# wget http://www.redmine.org/releases/redmine-3.3.1.tar.gz
# tar zxf redmine-3.3.1.tar.gz
# rvm install 2.1
# rvm use 2.1
# cd /opt/redmine-3.3.1
# gem sources -l
# gem sources —remove https://rubygems.org/
# gem sources -a https://ruby.taobao.org/

# gem install rails —version 4.2
# gem update
# bundle install
# bundle exec rake generate_secret_token
# mkdir -p tmp tmp/pdf public/plugin_assets
# sudo chown -R redmine:redmine files log tmp public/plugin_assets
# sudo chmod -R 755 files log tmp public/plugin_assets
# bundle exec rails server webrick -e production -d

把redmine安装为系统服务:
$vim /etc/rc.local
加入以下代码:
#/usr/local/rvm/rubies/ruby-2.1.8/bin/ruby bin/rails server webrick -e production -b 192.168.124.54 -d