免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1097 | 回复: 0
打印 上一主题 下一主题

redmine1.2.0 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-21 08:44 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP