redmine-1.2.0 转载

1.安装运行环境
[root@redmine mail]# gem list
*** LOCAL GEMS ***
actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
cgi_multipart_eof_fix (2.5.0)
daemon_controller (0.2.6)
daemons (1.1.3)
fastthread (1.0.7)
fcgi (0.8.8)
gem_plugin (0.2.3)
i18n (0.4.2)
mongrel (1.1.5)
mysql (2.8.1)
passenger (3.0.7)
rack (1.1.1)
rails (2.3.11)
rake (0.8.7)
rdoc (3.6.1)
rubygems-update (1.3.7)
#gem install rails -v=2.3.11
2.配置mysql数据库
mysql>create database redmine character set utf8;
mysql>create user 'redmine'@'localhost' identified by 'my_password';
mysql>grant all privileges on redmine.* to 'redmine'@'localhost';
3.#cd /home/redmine/config/
#cp database.yml.example database.yml
#vim database.yml
# MySQL (default setup).
production: 
adapter: mysql 
database: redmine 
host: localhost 
username: redmine 
password: xxxx
encoding: utf8
4.
#rake generate_session_store
#RAILS_ENV=production rake db:migrate
#RAILS_ENV=production rake redmine:load_default_data
#mkdir tmp public/plugin_assets
#chown -R redmine:redmine files log tmp public/plugin_assets
#chmod -R 755 files log tmp public/plugin_assets
#ruby script/server webrick -e production  
//Once WEBrick has started, point your browser to http://localhost:3000/. You should now see the application welcome page.
5.redmine与apache整合
#gem i passenger   
#passenger-install-apache2-module  
#cd /usr/local/apache/conf
#vim httpd.conf
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7
PassengerRuby /usr/local/bin/ruby
<Directory "/home/redmine/public/">
    Options -MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
#cd /home/redmine/public/
#cp dispatch.cgi.example dispatch.cgi
#vim dispatch.cgi        //修改ruby的路径
 
 
参考文档:http://www.redmine.org/projects/redmine/wiki/RedmineInstall
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值