RedHat Linux下安装项目管理工具Redmine
1、Ruby安装
Ruby on Rails网站推荐使用1.8.7版。
# tar zxvf ruby-1.8.7-p174.tar.gz
# cd ruby-1.8.7-p174
# ./configure --prefix=/usr/local/ruby
# make && make install
设置Ruby环境变量
# cd ~
# vi .bash_profile
添加下面一行
export PATH=$PATH:/usr/local/ruby/bin
保存退出:wq
# . .bash_profile
2、RubyGems安装
# tar zxvf rubygems-1.3.5.tgz
# cd rubygems-1.3.5 # ruby setup.rb 3、Rake安装
# gem install rake //直接使用gem命令安装rake.
4、Ruby on Rails
# gem install rails
安装成功提示:
Successfully installed activesupport-2.3.3
Successfully installed activerecord-2.3.3
Successfully installed rack-1.0.0
Successfully installed actionpack-2.3.3
Successfully installed actionmailer-2.3.3
Successfully installed activeresource-2.3.3
Successfully installed rails-2.3.3
7 gems installed
Installing ri documentation for activesupport-2.3.3...
Installing ri documentation for activerecord-2.3.3...
Installing ri documentation for rack-1.0.0...
Installing ri documentation for actionpack-2.3.3...
Installing ri documentation for actionmailer-2.3.3...
Installing ri documentation for activeresource-2.3.3...
Installing ri documentation for rails-2.3.3...
Installing RDoc documentation for activesupport-2.3.3...
Installing RDoc documentation for activerecord-2.3.3...
Installing RDoc documentation for rack-1.0.0...
Installing RDoc documentation for actionpack-2.3.3...
Installing RDoc documentation for actionmailer-2.3.3...
Installing RDoc documentation for activeresource-2.3.3...
Installing RDoc documentation for rails-2.3.3...
5、Redmine安装
# tar zxvf redmine-0.8.4.tar.gz
# mv redmine-0.8.4 /usr/local/redmine
# cd /usr/local/redmine/config
设置数据库参数
# cp database.yml.example database.yml
# vi database.yml
production:
adapter: mysql
database:redmine
host: localhost
username: redmineuser
password: redminepw
encoding: utf8
保存退出:wq
创建mysql数据库
Mysql安装(略,暂时请参考我的其它文章,如:http://gaoxingf.blog.51cto.com/612518/187953 以后我会把mysql的各版本安装单独整理出来)
# /usr/local/mysql/bin/mysql -u root -p
Mysql>
create database redmine default character set utf8; grant all on
redmine .* to root;grant all on
redmine .* to root@localhost;grant all on
redmine .* to redmineuser;grant all on
redmine .* to redmineuser @localhost;set password for redmineuser@localhost=password('redminpw');
Mysql>exit;
Remine设定
(注意此时的目录一定要在 redmine/config 里,不然会出错,本文后面有错误信息。)
# rake db:migrate RAILS_ENV="production" // 创建表#
rake redmine:load_default_data RAILS_ENV="production" / / 加 载默认配置这里会要求选择默认语言,我选的中文zh:
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
这个默认设置只是在未登录时的界面语言,当用户登录后,默认语言还是英语,在My account里可以修改成其它语言。
启 动 WEB 服 务 #
ruby script/server webrick -e production
或 # ruby /usr/local/redmine/script/server webrick -e production停止web服务方法:在当前启动窗口按ctrl+C
访问http://ip:3000/
初始用户名/密码:admin/admin 这样启动后,启动窗口是不能关闭的,所以要使Redmine作为服务启动,需添加-d参数:
# ruby script/server webrick -e production -d或 # ruby /usr/local/redmine/script/server webrick -e production –d停止服务方法:(ps命令查出此进程的pid号,再杀掉,目前好像只能这样,我看了--help里面,还没有停止的参数。)
# ps aux | grep ruby
# kill -9 [PID]
OK,安装完毕!可以进去玩了!哈哈!
贴个图,秀一下,嘿嘿~~~ 我在安装过程中遇到的错误记录:
1:在rake db:migrate时出错了,弄了半天才发现,原来是自己窗口开多了,执行目录弄乱了!
在执行这个命令时,操作目录一定要在redmine/config这个目录里,不然就会出现下面的错误,嘿嘿~~~误打误撞啊~~~错误信息如下:
执行rake db:migrate RAILS_ENV="production"命令后出错:
(in /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7)
RCov is not available
rake aborted!
Don't know how to build task 'db:migrate'
(See full trace by running task with --trace) 加上—trace后执行rake db:migrate RAILS_ENV=production --trace出错:
(in /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7)
RCov is not available
rake aborted!
Don't know how to build task 'db:migrate'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in `[]'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/ruby/bin/rake:19:in `load'
/usr/local/ruby/bin/rake:19 |
RedHat Linux下安装项目管理工具Redmine
精选 转载wangzhifengok 博主文章分类:【{Linux系统}】
上一篇:不用密码进入XP系统的方法
下一篇:网络故障排除实战技巧
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
【Docker管理工具】安装Oxker容器管理工具
【Docker管理工具】安装Oxker容器管理工具
Docker docker 应用程序 -
npm 包管理工具
探索 npm:JavaScript 的赛博配给站...
开发者 npm javascript