CentOS6.0安装redmine2.2.1
# 安装支持工具
yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-develapr-util-devel mysql-devel
yum install gcc gcc-c++ gcc-g77
# install ruby(ruby 1.8.7), it canbe ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7
yum install -y ruby ruby-devel
# install gems(RubyGems <= 1.8)
yum install -y rubygems
#安装mysql数据库
sudo chkconfig mysqld on
service mysqld start
# install passenger
gem install passenger
passenger-install-apache2-module
输入1按enter
#下载和解压Redmine
wget http://rubyforge.org/frs/download.php/76677/redmine-2.2.1.tar.gz
tar zxvfredmine-2.2.1.tar.gz
mv redmine-2.2.1//var/www/redmine
# 安装Redmine
# install rmagick
yum install -y ImageMagick-devel
# install bundler
# bundle install
cd /var/www/redmine
bundle install-without development test postgresql sqlite
#导入数据
cd /var/www/redmine
rake generate_secret_token
RAILS_ENV=production rake db:migrate
RAILS_ENV=production REDMINE_LANG=fr rakeredmine:load_default_data
# configsvn
cd /var/www/redmine/config
cp configuration.yml.example configuration.yml
# testinstall 启动
cd /var/www/redmine
ruby script/rails server webrick -eproduction
#测试访问
完成!