Linux下配置Redmine(ubuntu为例)

安装版本如下:

ruby:1.8.7

rails:2.3.14

gem:1.3.7

rack:1.1.0

1.下载Redmine解压包(1.3.1)

版本1.3.1

tar-zxvfredmine-1.3.1.tar.gz

cdredmine-1.3.1

2.安装Mysql

1).更新安装

$>apt-getinstallmysql-server

$>apt-getinstallmysql-client

2).启动mysql:

$>/etc/init.d/mysqlstart

3).打开mysql

$>mysql-uroot-ppassword

$>usemysql;

安装完mysql后创建redmine数据库

mysql>createuser'redmine'@localhostidentifiedby'redmine';

mysql>createdatabaseredminecharactersetutf8;

mysql>grantallprivilegesonredmine.*to'redmine'@'localhost';

3.配置redmine

redmine-1.3.1$>mvconfig/database.yml.exampleconfig/database.yml

redmine-1.3.1$>viconfig/database.yml

production:

adapter:mysql

database:redmine

host:localhost

username:redmine

password:redmine

encoding:utf8

4.创建一个Session密钥

redmine-1.3.1$>rakeconfig/initializers/session_store.rb

5.更新rack

rack不是1.1.0时,更新一下

geminstallrack-v=1.1.0

5.redmine数据初始化

redmine-1.3.1$>rakedb:migrateRAILS_ENV='production'

说明:如果出现异常:

Thebundledmysql.rbdirverhasbeenremovedfromRails2.2installthemysqlgemandtryagain:geminstallmysql

redmine-1.3.1$>apt-getinstallruby1.8-dev

redmine-1.3.1$>apt-getinstalllibmysqlclient15-dev

6.基本设定成功(svn,邮件配置除外)

启动期待已久的Redmine。

redmine-1.3.1$>script/serverwebrick-eproduction

访问http://xxx.xxx.xxx.xxx:3000

相关推荐