Redmine 安装


官方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 versionSupported Ruby versionsRails version used
current trunkruby 1.8.72, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2Rails 3.2.13
2.3.0ruby 1.8.72, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2Rails 3.2.13
2.2.4ruby 1.8.72, 1.9.2, 1.9.3, jruby-1.6.7Rails 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. 创建数据库

CREATE DATABASE redmine CHARACTER SET utf8;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';

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



待续……




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值