2011-06-16 09:34 xjimmyshcn 博客园 我要评论(0) 字号:T | T
一键收藏,随时查看,分享好友!

今天我们将谈到的是开源项目管理工具Redmine及ezFAQ插件的安装过程,希望对大家有所帮助。Redmine是基于Apache、MySQL、以及Ruby on Rails开发的一套缺陷管理系统。

AD:

 

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

  1. 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)

  1. ./bitnami-redmine-1.2.0-0-linux-installer.bin 

3.启动redmine

  1. [root@svn_server /]# cd /mnt/data/redmine-1.2.0-0 
  2. [root@svn_server redmine-1.2.0-0]# ./ctlscript.sh start 
  3. [root@svn_server redmine-1.2.0-0]# ./ctlscript.sh status 
  4. subversion already running 
  5. apache already running 
  6. redmine already running 
  7. mysql already running

4.从 http://www.redmine.org/projects/redmine/wiki/PluginEzfaq 下载ezFAQ插件

  1. 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

  1. [root@svn_server redmine-1.2.0-0]# ./use_redmine 
  2. bash-3.2# export PATH=/mnt/data/redmine-1.2.0-0/ruby/bin:$PATH  # 要重启后生效,需要加到/etc/profile中 
  3. bash-3.2# pwd 
  4. /mnt/data/redmine-1.2.0-0 
  5. bash-3.2# cd apps/redmine 
  6. bash-3.2# rake db:migrate_plugins RAILS_ENV=production 

3). Start Redmine

  1. [root@svn_server redmine-1.2.0-0]# ./ctlscript.sh restart 
  2. /mnt/data/redmine-1.2.0-0/subversion/scripts/ctl.sh : subversion stopped 
  3. Syntax OK 
  4. /mnt/data/redmine-1.2.0-0/apache2/scripts/ctl.sh : httpd stopped 
  5. stopping port 3001 
  6. stopping port 3002 
  7. /mnt/data/redmine-1.2.0-0/mysql/scripts/ctl.sh : mysql stopped 
  8. 110616 08:25:22 mysqld_safe Logging to '/mnt/data/redmine-1.2.0-0/mysql/data/mysqld.log'. 
  9. 110616 08:25:22 mysqld_safe Starting mysqld.bin daemon with databases from /mnt/data/redmine-1.2.0-0/mysql/data 
  10. /mnt/data/redmine-1.2.0-0/mysql/scripts/ctl.sh : mysql started at port 3306 
  11. starting port 3001 
  12. starting port 3002 
  13. Syntax OK 
  14. /mnt/data/redmine-1.2.0-0/apache2/scripts/ctl.sh : httpd started at port 8080 
  15. /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文件中

  1. [root@svn_server bin]# export PATH=/mnt/data/redmine-1.2.0-0/ruby/bin:$PATH 
  2. [root@svn_server bin]# ruby --version 
  3. 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

解决:

  1. [root@svn_server redmine-1.2.0-0]# ./use_redmine 
  2. bash-3.2# export PATH=/mnt/data/redmine-1.2.0-0/ruby/bin:$PATH 
  3. bash-3.2# pwd 
  4. /mnt/data/redmine-1.2.0-0 
  5. bash-3.2# cd apps/redmine 
  6. bash-3.2# rake db:migrate_plugins RAILS_ENV=production 

原文链接:http://www.cnblogs.com/xjimmyshcn/archive/2011/06/16/2082333.html