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
【编辑推荐】