CentOS Linux安装Redmine项目管理系统(已有nginx,mysql环境)

一、环境需求

1.1现有环境

centos5.x nginx mysql

1.1官方要求环境

Redmine version Supported Ruby versions Rails version used Supported RubyGems versions
current trunk ruby 1.8.7, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2 Rails 3.2.13 RubyGems <= 1.8
2.3.0 ruby 1.8.7, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2 Rails 3.2.13 RubyGems <= 1.8
2.2.4 ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7 Rails 3.2.13 RubyGems <= 1.8

安装redmine2.3.0版本,需求表中已经详细列出.

 

二、安装

2.1安装依赖包

yum -y install zlib-devel curl-devel openssl-devel apr-devel apr-util-devel
wget -c http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
tar zxvf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure
make
make install
cd ../

2.2安装ruby

wget -c http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
tar zxvf ruby-2.0.0-p0.tar.gz
cd ruby-2.0.0-p0
./configure –prefix=/usr/local –enable-shared –disable-install-doc –with-opt-dir=/usr/local/lib
make
make install
cd ../
#看看版本号
ruby -v
#ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]

2.3安装rebyGems

wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz
tar zxvf rubygems-1.8.24.tgz
cd rubygems-1.8.24
ruby setup.rb
gem -v
cd ../

2.3.1安装rebyGems源为 淘宝国内源

gem sources –remove http://rubygems.org/
gem sources -a http://ruby.taobao.org/
gem sources -l

2.4安装Redmine

wget http://rubyforge.org/frs/download.php/76867/redmine-2.3.0.tar.gz
tar zxvf redmine-2.3.0.tar.gz
cd redmine-2.3.0
gem install bundler
bundle install –without development test rmagick postgresql sqlite
cp -Rf * /data/wwwroot/redmine #复制redmine到web目录.

cp config/database.yml.example config/database.yml

vi config/database.yml
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: my_password

rake generate_secret_token

RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data

cp config/configuration.yml.example config/configuration.yml

ruby script/rails server webrick -e production

扩展阅读

http://bitnami.com/stack/redmine 集成版本,一键安装
打赏

2 评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注