isTester.com发起人,某互联网公司测试经理,十年测试经验,公众号“简尚”; 致力于软件测试从业者综合能力提升 & 职场人每日进阶。 微信isTester 》》博客文章未标注转载均属「原创」,转载找老徐授权;

Redmine简介及部署说明

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


Dt6@B;K w+W+H5wi0

S/vp#Cm*Sr(v0

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

XL:B-XiiB0

51Testing软件测试网"^CT5M4y
51Testing软件测试网#r$S@6K*?.ENi

开发语言:Ruby;开发框架:ROR;运行环境:RubyGems+Apache+Mysql,完全绿色开源软件,无任何商用限制51Testing软件测试网aN!Rh-f{


V'DT9eKaem'hf)L0
51Testing软件测试网v!rH p2Q4a.kx \6c0w



2s qZ6Yq)@0
51Testing软件测试网YC?7lA&p$Y8tf

Linux下安装项目管理工具Redmine51Testing软件测试网/z-uE:[u RU+o
1、Ruby安装
3qp.W^$H Z{0Ruby on Rails网站推荐使用1.8.7版。
51Testing软件测试网H1B YoC#CK'^

点击(此处)折叠或打开51Testing软件测试网%[MW,mWoA

  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环境变量

%RQ4lo9Dzd }0

点击(此处)折叠或打开51Testing软件测试网6] r-g;_)N W%F%Z

  1. # cd ~
  2. # vi .bash_profile

添加下面一行

4O JT eA?'U0

点击(此处)折叠或打开51Testing软件测试网 x3q`Gbo'd X

  1. export PATH=$PATH:/usr/local/ruby/bin

保存退出:wq51Testing软件测试网NR;Krz@#Y7e`

点击(此处)折叠或打开51Testing软件测试网2Q XE"|J6D6F

  1. # . .bash_profile

2、RubyGems安装

d!i*C&?mB/s6B!CNH0

点击(此处)折叠或打开51Testing软件测试网 f!zS/lJ'H

  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安装

,S MEu xqAc^0

点击(此处)折叠或打开

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

4、Ruby on Rails51Testing软件测试网-RR.AE:AP

点击(此处)折叠或打开

V9J;BOe]8[{y0
  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安装51Testing软件测试网 eI)Tm/~E

点击(此处)折叠或打开51Testing软件测试网?(RCW3f-QUu5^

  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软件测试网dNsc*v wO[DO'}

点击(此处)折叠或打开

#k^_fh QUP%Z0
  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

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar