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

Redmine简介及部署说明

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

51Testing软件测试网.gLF&|t
51Testing软件测试网.V9\1c)wZ7`k.JF

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

1h P+r5]\U2j0


/F? Tr9j$F Sx0
51Testing软件测试网"Im7bOhA;G

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

51Testing软件测试网x%gR Lv'] \ o4Y.`

bB4aRw6Q OE0
51Testing软件测试网 Sp'rj^
51Testing软件测试网7GoMw;pmK

Linux下安装项目管理工具Redmine51Testing软件测试网 UD \:Xq/H N6M
1、Ruby安装51Testing软件测试网q-g/Q5V2aY,vAio)b
Ruby on Rails网站推荐使用1.8.7版。

sI sq'}J*}2|B:i0

点击(此处)折叠或打开

N f t]z0
  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环境变量

4d&KfZX8|]0

点击(此处)折叠或打开51Testing软件测试网 N$L2jD'Rb(C(vc)G

  1. # cd ~
  2. # vi .bash_profile

添加下面一行51Testing软件测试网 y3Ej-g1Yw8R1@

点击(此处)折叠或打开

I U~5_TC,WLj0
  1. export PATH=$PATH:/usr/local/ruby/bin

保存退出:wq51Testing软件测试网4Fg T:zH#V;D

点击(此处)折叠或打开51Testing软件测试网3CYD9_0T

  1. # . .bash_profile

2、RubyGems安装

vM:K.p!kIC0

点击(此处)折叠或打开

zSFf9A@C0
  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安装

7l M6qEPZ0

点击(此处)折叠或打开51Testing软件测试网5_f#KN0y)S!i `

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

4、Ruby on Rails

wk!@3{ d R)|%p0

点击(此处)折叠或打开51Testing软件测试网 gU&[;As6^\

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

BF];\5\ n4[0

点击(此处)折叠或打开51Testing软件测试网c#jX'O*f

  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设定

8LV UkM0

点击(此处)折叠或打开51Testing软件测试网+{2tC3A-X_e

  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