︿
Top

Redmine for CentOS 5.6 安裝專案管理系統

由於工作的關係,又接觸到了這個從前聽說過的專案管理系統Redmine,這是一套由Ruby程式設計而成的管理工具,提供多使用者管理多個專案,藉由群組或使用者的權限控管使用行為,不過在較嚴謹的CentOS上安裝這套工具還真讓我吃了不少苦頭呢 ,首先是Redmine並不屬於LAMP環境下可直接安裝的網頁程式,再來就是已經習慣Ubuntu這種智慧型自動化的安裝模式,讓我有點感覺又回到了3年前碰SuSE的苦力生活呢!



Step 1 Web Service
[root@centos56 ~]# yum install httpd httpd-devel

Step 2 MySQL Service
[root@centos56 ~]# yum install mysqld mysql-devel mysql-server
[root@centos56 ~]# chkconfig --levels 235 mysqld on
[root@centos56 ~]# service mysqld start

Step 3 Php Install ( 若要使用phpMyAdmin管理MySQL的話才需要安裝 )
[root@centos56 ~]# yum install php php-mysql php-mbstring php-mcrypt php-gd

Step 4 Ruby install ( 下載較新版的Ruby for CentOS 5.6 )
[root@centos56 ~]# Ruby -v
[root@centos56 ~]# cd /etc/yum.repos.d
[root@centos56 ~]# wget http://rubyworks.rubyforge.org/RubyWorks.repo
[root@centos56 ~]# yum install ruby
[root@centos56 ~]# yum install ruby-devel.x86_64 ruby-docs.x86_64 ruby-rdoc.x86_64

Step 5 RubyGem Install
[root@centos56 ~]# cd /opt
[root@centos56 ~]# wget http://production.cf.rubygems.org/rubygems/rubygems-1.4.2.tgz
[root@centos56 ~]# tar zxvf rubygems-1.4.2.tgz
[root@centos56 ~]# ruby ./rubygems-1.4.2/setup.rb

Step 6 Redmine 主程式下載
[root@centos56 ~]# cd /var/www/html
[root@centos56 ~]# wget http://rubyforge.org/frs/download.php/74722/redmine-1.1.3.tar.gz
[root@centos56 ~]# tar zxvf redmine-1.1.3.tar.gz
[root@centos56 ~]# mv redmine-1.1.3 ./redmine

Step 7 Bundler & Gemfile
[root@centos56 ~]# gem install bundler
[root@centos56 ~]# vi /var/www/html/readmine/Gemfile
貼上以下文字...
source :rubygems
source "http://rubygems.org"
source :rubyforge
source "http://gems.rubyforge.org"
source :gemcutter
source "http://gemcutter.org"
gem "rake", "0.8.3"
gem "rack", "1.0.1"
gem "i18n", "0.4.2"
gem "rubytree", "0.5.2", :require => "tree"
gem "RedCloth", "~>4.2.3", :require => "redcloth" # for CodeRay
gem "mysql"
gem "coderay", "~>0.9.7"

Step 8 Rails install
[root@centos56 ~]# gem install rails -v=2.3.11 --no-ri --no-rdoc
[root@centos56 ~]# gem install i18n -v=0.4.2 --no-ri --no-rdoc
[root@centos56 ~]# gem install mysql --no-ri --no-rdoc
[root@centos56 ~]# gem install cgi_multipart_eof_fix --no-ri --no-rdoc
[root@centos56 ~]# gem install coderay --no-ri --no-rdoc

Step 9 bundle install
[root@centos56 ~]# cd /var/www/html/redmine
[root@centos56 ~]# bundle install

Step 10 create database
[root@centos56 ~]# mysql -u root -p 
Mysql> create database redmine character set utf8;
Mysql> exit

Step 11 redmine setting請在database.yml中填入mysql相對應帳戶細節...
[root@centos56 ~]# cp /var/www/html/redmine/config/database.yml.example /var/www/html/redmine/config/database.yml
[root@centos56 ~]# cd /var/www/html/redmine
[root@centos56 ~]# RAILS_ENV=production bundle exec rake generate_session_store
[root@centos56 ~]# RAILS_ENV=production bundle exec rake db:migrate
[root@centos56 ~]# RAILS_ENV=production bundle exec rake redmine:load_default_data

Run redmine ( 網頁端口預設為3000 )
也可將這行指令寫在rc.local以便每次開機後都會自動執行!
[root@centos56 ~]# ruby script/server -e production




Redmine操作與使用

於瀏覽器URL處輸入server IP,埠號3000,利用web介面登入Redmine系統。

Admin登入 ( 密碼admin ) 後可以看到目前Redmine上進行中的專案。

Admin或管理人員群組的會員可以創建新專案。

進入剛剛建立好的專案頁面如下。

管理人員可以將所需會員加入此專案並分派成員角色權限。

專案中的成員可依權限建立專案中的功能、Bug等事項。

從該專案清單中可以條列所有相關事項

以甘特圖壓著版本來看專案中的事項狀態,一目瞭然!

從專案裡的「版本藍圖」可以知道專案的整體進度。

Redmine也細心的為每一個專案提供了簡易論壇的功能。

而在會員的帳戶首頁,也可以清楚看到被指派或自行通報的事項。


Redmine這套專案管理系統並非三言兩語可以介紹完畢,還是需要專案經理的設計、理解與實際使用才能真正讓工具與現實做結合,在這裡就只做個簡單的介紹,祝大家使用愉快喔!

tomy

來自台灣的系統工程師,一直熱衷於 Open source 相關技術的學習、建置、應用與分享。

  • Image
  • Image
  • Image
  • Image
  • Image

0 Comments:

張貼留言