机器安装的是server ubuntu 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:
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
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、
参考redmine 官方文档配置更多内容:
阅读(1508) | 评论(0) | 转发(0) |