IDO老徐,在深圳,某上市公司质量部负责人,干了十二年软件测试,公号"简尚" ,博客isTester.com ,关注「软件测试从业者综合能力提升」,微信957863300

Redmine简介及部署说明

上一篇 / 下一篇  2016-10-12 00:57:14 / 个人分类:linux

51Testing软件测试网6\&vh?"NEQ
51Testing软件测试网8e AuZ(fbV

REDMINE是用RUBY开发的基于WEB项目管理软件,提供项目管理、WIKI、新闻台等功能,集成版本管理系统GITSVNCVS等等。通过WEB形式把成员、任务、文档、讨论以及各种形式的资源组织在一起,推动项目的进度

n[2uPA%}!c*k7] g(\k f0


;AxP3TSE }0

,J"DtJY/jO0

开发语言:Ruby;开发框架:ROR;运行环境:RubyGems+Apache+Mysql,完全绿色开源软件,无任何商用限制

4iTQ;},R S0

51Testing软件测试网l]#r5? B"J5T^
51Testing软件测试网Y h!Ag-jJ(D EbW



:ux[;?T#R9vw0

:EN+mDU Z0

Linux下安装项目管理工具Redmine51Testing软件测试网-~ lO8m e(w
1、Ruby安装
W%r6F"B/Rc)V3B o{kN0Ruby on Rails网站推荐使用1.8.7版。

H ~G{et6l0

点击(此处)折叠或打开

s?/I#Va.YO0
  1. # wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
  2. # tar zxvf ruby-1.8.7-p174.tar.gz
  3. # cd ruby-1.8.7-p174
  4. # ./configure –prefix=/usr/local/ruby
  5. # make && make install

设置Ruby环境变量

Zj:?x;]3f_GT0@K-Y0

点击(此处)折叠或打开

8u*m u`[$FLN0
  1. # cd ~
  2. # vi .bash_profile

添加下面一行

4x(|~4l-A x4g0

点击(此处)折叠或打开

!SBI%d_o0
  1. export PATH=$PATH:/usr/local/ruby/bin

保存退出:wq51Testing软件测试网ew]^Ey-y

点击(此处)折叠或打开51Testing软件测试网.dxge5k/b

  1. # . .bash_profile

2、RubyGems安装

0w1Q$|t,`(l2h0

点击(此处)折叠或打开

D~Bvs0
  1. # wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
  2. # tar zxvf rubygems-1.3.5.tgz
  3. # cd rubygems-1.3.5
  4. # ruby setup.rb

3、Rake安装51Testing软件测试网B&YA;i z1UD

点击(此处)折叠或打开51Testing软件测试网$A&WVT!p5}c

  1. # gem install rake //直接使用gem命令安装rake.
  2. //也可以下载安装地址:http://rubyforge.org/frs/download.php/56872/rake-0.8.7.tgz

4、Ruby on Rails51Testing软件测试网&? s vs0e fP+WA(r

点击(此处)折叠或打开

3F4w+R6V%i#p(`0
  1. # gem install rails
  2. 安装成功提示:
  3. Successfully installed activesupport-2.3.3
  4. Successfully installed activerecord-2.3.3
  5. Successfully installed rack-1.0.0
  6. Successfully installed actionpack-2.3.3
  7. Successfully installed actionmailer-2.3.3
  8. Successfully installed activeresource-2.3.3
  9. Successfully installed rails-2.3.3
  10. 7 gems installed
  11. Installing ri documentation for activesupport-2.3.3…
  12. Installing ri documentation for activerecord-2.3.3…
  13. Installing ri documentation for rack-1.0.0…
  14. Installing ri documentation for actionpack-2.3.3…
  15. Installing ri documentation for actionmailer-2.3.3…
  16. Installing ri documentation for activeresource-2.3.3…
  17. Installing ri documentation for rails-2.3.3…
  18. Installing RDoc documentation for activesupport-2.3.3…
  19. Installing RDoc documentation for activerecord-2.3.3…
  20. Installing RDoc documentation for rack-1.0.0…
  21. Installing RDoc documentation for actionpack-2.3.3…
  22. Installing RDoc documentation for actionmailer-2.3.3…
  23. Installing RDoc documentation for activeresource-2.3.3…
  24. Installing RDoc documentation for rails-2.3.3…
  25. //也可以下载安装地址:http://rubyforge.org/frs/download.php/60599/rails-2.3.3.tgz

5、Redmine安装

/WFM[2U0

点击(此处)折叠或打开51Testing软件测试网 Vl,f/n l x-gU

  1. # wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz
  2. # tar zxvf redmine-0.8.4.tar.gz
  3. # mv redmine-0.8.4 /usr/local/redmine
  4. # cd /usr/local/redmine/config
  5. 设置数据库参数
  6. # cp database.yml.example database.yml
  7. # vi database.yml
  8. production:
  9. adapter: mysql
  10. database:redmine
  11. host: localhost
  12. username: redmineuser
  13. password: redminepw
  14. encoding: utf8
  15. 保存退出:wq
  16. 创建mysql数据库
  17. # /usr/local/mysql/bin/mysql -u root -p
  18. Mysql> create database redmine default character set utf8;
  19. grant all on redmine.* to root;
  20. grant all on redmine.* to root@localhost;
  21. grant all on redmine.* to redmineuser;
  22. grant all on redmine.* to redmineuser @localhost;
  23. set password for redmineuser@localhost=password(‘redminpw’);
  24. Mysql>exit;

Remine设定51Testing软件测试网rY n%X H_xM8s

点击(此处)折叠或打开51Testing软件测试网/zz H"vy6R

  1. (注意此时的目录一定要在redmine/config里,不然会出错,本文后面有错误信息。)
  2. # rake db:migrate RAILS_ENV=”production” //创建表
  3. # rake redmine:load_default_data RAILS_ENV=”production” //加载默认配置
  4. 这里会要求选择默认语言,我选的中文zh:
  5. Select language: bg, ca, cs, da, de, en, es, fi, fr, he, hu, it, ja, ko, lt, nl, no, pl, pt, pt-br, ro, ru, sk, sr, sv, th, tr, uk, vn, zh, zh-tw [en] zh
  6. 这个默认设置只是在未登录时的界面语言,当用户登录后,默认语言还是英语,在My account里可以修改成其它语言。
  7. 启动WEB服务
  8. # ruby script/server webrick -e production
  9. 或# ruby /usr/local/redmine/script/server webrick -e production
  10. 停止web服务方法:在当前启动窗口按ctrl+C
  11. 访问http://ip:3000/
  12. 初始用户名/密码:admin/admin
  13. 这样启动后,启动窗口是不能关闭的,所以要使Redmine作为服务启动,需添加-d参数:
  14. # ruby script/server webrick -e production -d
  15. 或# ruby /usr/local/redmine/script/server webrick -e production –d
  16. 停止服务方法:(ps命令查出此进程的pid号,再杀掉,目前好像只能这样,我看了–help里面,还没有停止的参数。)
  17. # ps aux | grep ruby
  18. # kill -9 [PID]
  19. OK,安装完毕!可以进去玩了!哈哈!

TAG: Redmine redmine bug工具 redmine安装

 

评分:0

我来说两句

xuquan

xuquan

IDO老徐,坐标深圳,测试经理,干了十年测试,公号"简尚" ,个人博客isTester.com ,关注「软件测试从业者综合能力提升」,微信957863300

日历

« 2024-04-07  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 912605
  • 日志数: 427
  • 建立时间: 2012-06-04
  • 更新时间: 2022-02-23

RSS订阅

Open Toolbar