安装redmine+apache2

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Redmine+apache2安装

Redmine安装所需软件版本要求:

redmine对应ruby、rails rack版本

Ruby & Ruby on Rails & Rack

The required Ruby and Ruby on Rails versions for a given Redmine version is:

Compatibility notes

∙Ruby 1.9 is not supported yet. You have to use Ruby 1.8.x as stated above.

∙RubyGems 1.3.7 or higher is required with following limitations :

o Rails 2.3.5 will fail with RubyGems 1.5.0 or later, stick to previous versions of RubyGems !

o Rails 2.3.11 will fail with RubyGems 1.7.0 or later, stick to previous versions of RubyGems !

∙Rake 0.8.7 is required (rake 0.9.x is not supported by Rails yet)

∙Rack 1.1.x is required, 1.1.0 has a bug with quotes (#8416). Database migration would fail with other version.

∙Mongrel 1.1.5 needs a patch attached to #7688to work fine with Rails 2.3.11. In case of upgrade, another issue may appear for some time after migration (#7857).

∙I18n 0.4.2 is required for Redmine>= 1.0.5

1.安装redmine所需ruby包

[root@test ~]# yum -y install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql

2.安装rubygems软件,(用于gem install 离线下载)

[root@test ~]# yum install rubygems

3.安装rails软件,按照官方要求安装对应版本。

[root@test ~]# gem install rails -v=2.3.11

4.安装rack软件,按照官方要求安装对应版本。[root@test ~]# gem install rack -v=1.1.0

5.安装mysql-server数据库服务。

[root@test ~]# yum install -y mysql-server

6.设置mysql数据库帐号密码

[root@test ~]# servicemysqld start

[root@test ~]# mysqladmin -uroot password 123456 启动mysqld

设置root账号密码

7.创建在mysql中创建redmine数据库,并创建redmine数据库管理账户。[root@test ~]# mysql -uroot -p123456

mysql> create database redmine character set utf8;

mysql> create user 'redmine'@'localhost' identified by 'redmine';

mysql> grant all privileges on redmine.* to 'redmine'@'localhost';

进入mysql数据库

创建redmine数据库

创建redmine帐号,密码redmine。

给redmine帐号赋予redmine数据库完全管理权限。

退出数据库

8.下载redmine1.2.1安装包

[root@test ~]# wget /frs/download.php/75097/redmine-1.2.1.tar.gz

等待下载完毕。

9.将redmine1.2.1安装在指定目录。

[root@test ~]# ls

[root@test ~]# tar zxvf redmine-1.2.1.tar.gz

[root@test ~]# cp redmine-1.2.1 /usr/local

[root@test ~]# cp -rf redmine-1.2.1 /usr/local/

[root@test ~]# cd /usr/local/

[root@test local]# ls

[root@test local]# cd /usr/local/redmine-1.2.1/

[root@test redmine-1.2.1]# ls

[root@test redmine-1.2.1]# cdconfig/

[root@test local]# cd /usr/local/redmine-1.2.1/

[root@test redmine-1.2.1]# cdconfig/

[root@testconfig]# cpdatabase.yml.exampledatabase.yml [root@testconfig]# vidatabase.yml

# MySQL (default setup).

#production:

# adapter: mysql

# database: redmine

# host: localhost

# username: root

# password:

# encoding: utf8

production:

adapter: mysql

database: redmine

host: localhost

username: redmine

password: redmine

encoding: utf8

wq!

解压redmine1.2.1.tar.gz

将redmine1.2.1安装到/usr/local目录下

相关文档
最新文档