首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux上安装redmine

2012-09-28 
linux下安装redmine1.安装rubyyum install ruby2.安装rubygemyum install rubygems3.安装ruby-develyum in

linux下安装redmine
1.安装ruby
yum install ruby
2.安装rubygem
yum install rubygems
3.安装ruby-devel
yum install ruby-devel
4.安装rake
gem install rake
5.安装ruby on rails
gem install rails
6.安装redmine
tar -xzvf redmine-1.3.1.tar.gz
cp /usr/local/redmine-1.3.1/config/database.yml.example /usr/local/redmine-1.3.1/config/database.yml
vi /usr/local/redmine-1.3.1/config/database.yml 数据库配置
7.安装mysql
yum install mysql-server
yum install mysql-devel
gem install mysql
8.创建数据库
create database redmine default character set utf8;
grant all on redmine.* to root;
grant all on redmine.* to root@localhost;
9.Remine设定
修改/user/local/redmine-1.3.1/config/environment.rb文件,在适当位置增加如下内容:
config.action_controller.session = { :key => "_redmine_session", :secret => "aa3be4f950045ce76451b8197bf06b6d" }
然后执行:
rake db:migrate RAILS_ENV="production"         //创建表
rake redmine:load_default_data RAILS_ENV="production"

如果报错:
rake aborted!
No Rakefile found
那么要进入redmine安装目录下执行上述命令

如果报错:
rake aborted!
RubyGem version error: rack(1.4.1 not ~> 1.1.0)
重新安装指定版本:gem install rack --version=1.1.0

如果报错:
rake aborted!
A key is required to write a cookie containing the session data.
修改/user/local/redmine-1.3.1/config/environment.rb文件,在适当位置增加如下内容:
config.action_controller.session = { :key => "_redmine_session", :secret => "aa3be4f950045ce76451b8197bf06b6d" }

如果报错:
rake aborted!
no such file to load -- mysql
首先mysql要安装成功,其次要安装mysql-devel,然后 gem install mysql

9.启动WEB服务
ruby /usr/local/redmine-1.3.1/script/server webrick -e production -d

热点排行