官方wiki:http://www.redmine.org/projects/redmine/wiki
下载地址:http://www.redmine.org/projects/redmine/wiki/Download
安装手册:http://www.redmine.org/projects/redmine/wiki/RedmineInstall
我下载的是当前的最新版本 redmine-2.3.3.tar.gz ,安装手册中有详细安装要求,如下所示:
Redmine version | Supported Ruby versions | Rails version used |
---|---|---|
current trunk | ruby 1.8.72, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2 | Rails 3.2.13 |
2.3.0 | ruby 1.8.72, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2 | Rails 3.2.13 |
2.2.4 | ruby 1.8.72, 1.9.2, 1.9.3, jruby-1.6.7 | Rails 3.2.13 |
1、于是,我们得先安装 ruby 解析器:
ruby 官方下载地址:https://www.ruby-lang.org/en/downloads/
我下载的是当前的最新版本 Ruby 2.0.0-p247 ,开始安装。
[root@centos redmine]# wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
[root@centos redmine]# tar xf ruby-2.0.0-p247.tar.gz
[root@centos redmine]# cd ruby-2.0.0-p247
./configure --prefix=/usr/local/ruby && make && make install
然后将修改 /etc/profile文件, pathmunge /usr/local/ruby/bin 到 PATH中!
2、再安装Rails
Rails下载主页:http://rubyonrails.org/download
打开主页一看,赫然看到一句话:
Rails,With Ruby installed, you can install all of Rails and its dependencies through RubyGems on the command line:
gem install rails
New versions of Rails can be installed the same way.
大致是,先安装Ruby,然后通过 RubyGems 下达指令 gem install rails 安装 Rails 以及其相关依赖性的东西。于是,我们得安装 RubyGems 这玩意儿。
RubyGems 下载地址:http://rubygems.org/pages/download
我下载的是当前的最新版本:rubygems-2.1.7.tgz
[root@centos redmine]# wget http://production.cf.rubygems.org/rubygems/rubygems-2.1.7.tgz
[root@centos redmine]# tar xf rubygems-2.1.7.tgz
[root@centos rubygems-2.1.7]# ruby setup.rb // 从README.rdoc 中可获知安装指令
RubyGems 2.1.7 installed
Parsing documentation for rubygems-2.1.7
Installing ri documentation for rubygems-2.1.7
....
RubyGems installed the following executables:
/usr/local/ruby/bin/gem
然后执行 Rails 安装指令:
[root@centos rubygems-2.1.7]# gem install rails
Fetching: i18n-0.6.5.gem (100%)
Successfully installed i18n-0.6.5
Fetching: multi_json-1.8.2.gem (100%)
Successfully installed multi_json-1.8.2
Fetching: tzinfo-0.3.38.gem (100%)
Successfully installed tzinfo-0.3.38
....
Successfully installed rails-4.0.1
....
Rails 安装完毕。
3. 创建数据库
4. 修改配置文件
[root@centos redmine]#wget http://rubyforge.org/frs/download.php/77138/redmine-2.3.3.tar.gz
[root@centos redmine]# tar xf redmine-2.3.3.tar.gz
[root@centos redmine]# mv redmine-2.3.3 /usr/local/redmine
[root@centos redmine]# cd /usr/local/redmine/config
[root@centos config]# cp database.yml.example database.yml
[root@centos config]# vim database.yml
production:
adapter: mysql2
database: redmine
host: localhost
port: 3306
username: redmine
password: "my_password"
encoding: utf8
待续……