詳解開源項目管理工具Redmine及ezFAQ插件的安裝
Redmine是基于Apache、MySQL、以及Ruby on Rails開發的一套缺陷管理系統。BitNami Redmine Stack是BitNami組織開發維護的Stack系列中的一員,可以簡化Redmine的安裝配置。根據其官網介紹,Redmine等軟件工具還能在云端運行,不知道在國內能不能用上。
Redmine是項目管理系統的后起之秀,據說是源于Basecamp的ror版而來,支持多種數據庫,除了和DotProject的功能大致相當外,還有不少自己獨特的功能,例如提供wiki、新聞臺、時間跟蹤、feed聚合、導出pdf等等,還可以集成其他版本管理系統和BUG跟蹤系統,例如SVN、CVS、TD等等。配置功能強大而且方便,自定義屬性和更新通知也很實用,詳細的介紹可以看看清華同方的redmine站點。中文版Redmine在線演示:ezWORK、英文版可看Redmine提供的官方演示。
軟件安裝步驟
1.從http://bitnami.org/stack/redmine下載 BitNami Redmine
- wget http://bitnami.org/files/stacks/redmine/1.2.0-0/bitnami-redmine-1.2.0-0-linux-installer.bin
2.安裝BitNami Redmine(假設安裝目錄為/mnt/data/redmine-1.2.0-0)
- ./bitnami-redmine-1.2.0-0-linux-installer.bin
3.啟動redmine
- [root@svn_server /]# cd /mnt/data/redmine-1.2.0-0
- [root@svn_server redmine-1.2.0-0]# ./ctlscript.sh start
- [root@svn_server redmine-1.2.0-0]# ./ctlscript.sh status
- subversion already running
- apache already running
- redmine already running
- mysql already running
4.從 http://www.redmine.org/projects/redmine/wiki/PluginEzfaq 下載ezFAQ插件
- wget https://download.github.com/zouchaoqun-ezfaq-0.3.5-12-g7c12aef.tar.gz
5.安裝ezFAQ插件
1). 復制 the plugin directory(ezfaq_plugin) into the /mnt/data/redmine-1.2.0-0/apps/redmine/vendor/plugins directory
注意: The plugin directory must be ezfaq_plugin
2). Migrate plugin: rake db:migrate_plugins
- [root@svn_server redmine-1.2.0-0]# ./use_redmine
- bash-3.2# export PATH=/mnt/data/redmine-1.2.0-0/ruby/bin:$PATH # 要重啟后生效,需要加到/etc/profile中
- bash-3.2# pwd
- /mnt/data/redmine-1.2.0-0
- bash-3.2# cd apps/redmine
- bash-3.2# rake db:migrate_plugins RAILS_ENV=production
3). Start Redmine
- [root@svn_server redmine-1.2.0-0]# ./ctlscript.sh restart
- /mnt/data/redmine-1.2.0-0/subversion/scripts/ctl.sh : subversion stopped
- Syntax OK
- /mnt/data/redmine-1.2.0-0/apache2/scripts/ctl.sh : httpd stopped
- stopping port 3001
- stopping port 3002
- /mnt/data/redmine-1.2.0-0/mysql/scripts/ctl.sh : mysql stopped
- 110616 08:25:22 mysqld_safe Logging to '/mnt/data/redmine-1.2.0-0/mysql/data/mysqld.log'.
- 110616 08:25:22 mysqld_safe Starting mysqld.bin daemon with databases from /mnt/data/redmine-1.2.0-0/mysql/data
- /mnt/data/redmine-1.2.0-0/mysql/scripts/ctl.sh : mysql started at port 3306
- starting port 3001
- starting port 3002
- Syntax OK
- /mnt/data/redmine-1.2.0-0/apache2/scripts/ctl.sh : httpd started at port 8080
- /mnt/data/redmine-1.2.0-0/subversion/scripts/ctl.sh : subversion started at port 3690
4). In your project in Redmine, go to "Project settings" : On the "Modules" tab, enable the module by checking "Ezfaq".
在安裝過程中的問題
1.[root@svn_server redmine-1.2.0-0]# rake db:migrate_plugins
-bash: rake: command not found
原因:找不到rake命令,redmine自帶ruby,rake等相關命令,在安裝目錄的ruby/bin下
解決:將/mnt/data/redmine-1.2.0-0/ruby/bin加到PATH環境變量的前頭,要啟動生效還需要加在/etc/profile文件中
- [root@svn_server bin]# export PATH=/mnt/data/redmine-1.2.0-0/ruby/bin:$PATH
- [root@svn_server bin]# ruby --version
- ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]
2.[root@svn_server redmine-1.2.0-0]# rake db:migrate_plugins
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/mnt/data/redmine-1.2.0-0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile'
(See full trace by running task with --trace)
原因:未在/mnt/data/redmine-1.2.0-0/apps/redmine目錄下執行解決:切換當前目錄到/mnt/data/redmine-1.2.0-0/apps/redmine,再執行
[root@svn_server apps]# cd /mnt/data/redmine-1.2.0-0/apps/redmine
3.[root@svn_server redmine]# rake db:migrate_plugins
(in /mnt/data/redmine-1.2.0-0/apps/redmine)
rake aborted!
Access denied for user 'bitnami'@'localhost' to database 'redmine_development'(See full trace by running task with --trace)
原因:not run it in production mode
解決:
- [root@svn_server redmine-1.2.0-0]# ./use_redmine
- bash-3.2# export PATH=/mnt/data/redmine-1.2.0-0/ruby/bin:$PATH
- bash-3.2# pwd
- /mnt/data/redmine-1.2.0-0
- bash-3.2# cd apps/redmine
- bash-3.2# rake db:migrate_plugins RAILS_ENV=production
原文鏈接:http://www.cnblogs.com/xjimmyshcn/archive/2011/06/16/2082333.html
【編輯推薦】