`

琐碎的学习——安装redmine

 
阅读更多

Redmine是用Ruby开发的基于web的项目管理软件(其它还有trac和jira等),感觉redmine安装配置比较简单(fedora 14)。安装手册参照官方流程http://www.redmine.org/projects/redmine/wiki/RedmineInstall

Step 1:

下载redmine源码(2.2.1版本)

Step 2:

(安装ruby,gem工具)

 

gem install bundler
yum install ruby-devel
yum install mysql-devel
#(用mysql做数据库)
bundle install --without development test postgresql rmagick sqlite

成功显示comment . Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

Step 3:创建数据库mysql

 

create database redmine character set utf8;
create user 'redmine'@'localhost' identified by 'my_password';
grant all privileges on redmine.* to 'redmine'@'localhost';

Step 4:修改配置文件 

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

 

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: root
  password: ""

Step 5:创建mysql表(redmine 2.x)

 

rake generate_secret_token

Step 6:创建表结构

 

RAILS_ENV=production rake db:migrate

Step 7:写入默认配置

 

RAILS_ENV=production rake redmine:load_default_data

Step 8 修改tmp tmp/pdf等文件夹权限

运行方式如下

ruby script/rails server webrick -e production

访问http://localhost:3000

管理员帐号密码 admin admin可以创建项目,配置用户权限等。

此外可以安装plantuml插件,以便在wiki中添加uml图

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics