# 安装 OpenSSL支持环境
yum install openssl openssl-dev
# 安装 Ruby
tar zxf ruby-1.8.7-p371.tar.gz
cd ruby-1.8.7-p371
./configure --prefix=/usr
make
make install
# 确认版本信息: ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux]
ruby -v
# 安装 rubygems
tar zxf rubygems-1.8.24.tgz
cd rubygems-1.8.24
ruby setup.rb
# 在线安装其他组件, 组件太多请勿尝试手动安装
tar zxf redmine-2.1.4.tar.gz -C /usr/local/
cd /usr/local/redmine-2.1.4
gem install bundler
bundle install --without development test postgresql sqlite rmagick
gem install tlsmail
创建数据库帐号
# Mysql
create database redmine character set utf8;
grant all privileges on redmine.* to redmine@'%' identified by '123456';
修改配置文件
# vim /usr/local/redmine-2.1.4/config/database.yml
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql -- --include=/usr/local/lib)
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
production:
adapter: mysql
database: redmine
host: localhost
port: 3306
username: redmine
password: 123456
encoding: utf8