Linux下安装项目管理工具Redmine

Posted 爱你爱自己

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux下安装项目管理工具Redmine相关的知识,希望对你有一定的参考价值。

http://www.redmine.org.cn/download

 

Linux下安装项目管理工具Redmine
1、Ruby安装
Ruby on Rails网站推荐使用1.8.7版。

点击(此处)折叠或打开

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

点击(此处)折叠或打开

  1. # cd ~
  2. # vi .bash_profile

添加下面一行

点击(此处)折叠或打开

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

保存退出:wq

点击(此处)折叠或打开

  1. # . .bash_profile

2、RubyGems安装

点击(此处)折叠或打开

  1. # wget https://rubygems.org/rubygems/rubygems-1.3.5.tgz(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安装

点击(此处)折叠或打开

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

4、Ruby on Rails

点击(此处)折叠或打开

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

点击(此处)折叠或打开

  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 [email protected];
  21. grant all on redmine.* to redmineuser;
  22. grant all on redmine.* to redmineuser @localhost;
  23. set password for [email protected]=password(‘redminpw’);
  24. Mysql>exit;

Remine设定

点击(此处)折叠或打开

  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,安装完毕!可以进去玩了!哈哈!
  20. 贴个图,秀一下,嘿嘿~~~

技术分享

以上是关于Linux下安装项目管理工具Redmine的主要内容,如果未能解决你的问题,请参考以下文章

在windows下安装redmine及相关问题

redmine二次开发实战--windows开发环境搭建

如何在 Centos 上安装 gitlab 和 redmine

redmine3.4.6安装教程

redmine 安装(Centos 6.5 x64)

在linux不联网的情况下,如何安装redmine?