Ubuntu 12.04 下Redmine 项目管理工具的配置

机器安装的是Ubuntu Server 12.04,有两种方法配置。
一、apache2 Passenger
1.install redmine:
sudo apt-get install redmine redmine-mysql libapache2-mod-passenger

2.reconfiguration redmine:
sudo dpkg-reconfigure redmine
configuration file, /etc/redmine/default/database.yml

3.link redmine to apache2
sudo ln -s /usr/share/redmine/public/ /var/www/redmine

4.In /etc/apache2/mods-available/passenger.conf, add:
PassengerDefaultUser www-data

5.In /etc/apache2/sites-available/default by adding:
<Directory /var/www/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>

6.sudo service apache2 restart
Maybe sudo chmod a+x /usr/share/redmine/public

7.

二、webrick (lightweight less memory)
cd /usr/share/redmine/
A、创建一个session安装密钥
rake generate_session_store

B、初始化Redmine的数据库结构
RAILS_ENV=production rake db:migrate

C、导入缺省配置数据
RAILS_ENV=production rake redmine:load_default_data
注:这一步操作是可选的,此命令将导入默认角色、跟踪标签、状态、工作流程和枚举值(强烈推荐执行它),您也可以从头开始一步步填写自己的配置参数。

D、Add /etc/init/redmine.conf
# Redmine
description "Redmine"

start on runlevel [2345]
stop on runlevel [!2345]

expect daemon
exec ruby /usr/share/redmine/script/server webrick -e production -b 0.0.0.0 -d

E、sudo service redmine start

F、:3000/

参考redmine 官方文档配置更多内容:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/21296.html