linux下安装redmine
1.安装ruby
yuminstallruby
2.安装rubygem
yuminstallrubygems
3.安装ruby-devel
yuminstallruby-devel
4.安装rake
geminstallrake
5.安装rubyonrails
geminstallrails
6.安装redmine
tar-xzvfredmine-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
yuminstallmysql-server
yuminstallmysql-devel
geminstallmysql
8.创建数据库
createdatabaseredminedefaultcharactersetutf8;
grantallonredmine.*toroot;
grantallonredmine.*toroot@localhost;
9.Remine设定
修改/user/local/redmine-1.3.1/config/environment.rb文件,在适当位置增加如下内容:
config.action_controller.session={:key=>"_redmine_session",:secret=>"aa3be4f950045ce76451b8197bf06b6d"}
然后执行:
rakedb:migrateRAILS_ENV="production"//创建表
rakeredmine:load_default_dataRAILS_ENV="production"
如果报错:
rakeaborted!
NoRakefilefound
那么要进入redmine安装目录下执行上述命令
如果报错:
rakeaborted!
RubyGemversionerror:rack(1.4.1not~>1.1.0)
重新安装指定版本:geminstallrack--version=1.1.0
如果报错:
rakeaborted!
Akeyisrequiredtowriteacookiecontainingthesessiondata.
修改/user/local/redmine-1.3.1/config/environment.rb文件,在适当位置增加如下内容:
config.action_controller.session={:key=>"_redmine_session",:secret=>"aa3be4f950045ce76451b8197bf06b6d"}
如果报错:
rakeaborted!
nosuchfiletoload--mysql
首先mysql要安装成功,其次要安装mysql-devel,然后geminstallmysql
9.启动WEB服务
ruby/usr/local/redmine-1.3.1/script/serverwebrick-eproduction-d