1.软件版本:
Linux: CentOS release 5.4
ruby-1.8.6-p114.tar.gz rubygems-1.3.7.tgz
2.安装ruby
wget
tar xvfz ruby-1.8.6-p114.tar.gz
cd ruby-1.8.6-p114
./configure && make && make install
ruby -v
3.安装rubygem包管理
tar -zxvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
ruby setup.rb
gem -v
4.安装rails环境
gem install rails -v=2.3.5
gem install rack -v=1.0.1
备注:rack要求为1.0.1版本
官网备注Notes:
Ruby 1.9 is not supported yet. You have to use Ruby 1.8.x as stated above.
RubyGems 1.3.1 or higher is required
Rake 0.8.3 or higher is required
Rack 1.0.1 is required. If you don't have this exact version, database migration would fail.
5.安装mysql
yum install mysql-server mysql-devel
6.下载redmine
svn co redmine
7.配置数据库
create database redmine character set utf8;
grant all privileges on redmine.* to identified by 'my_password';
cd /root/redmine
cp config/database.yml.example config/database.yml
修改config/database.yml
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: my_password
gem install mysql
8.生成回话存储密钥. This is required on the trunk version of Redmine at r2493 or above and the released 0.8.7 version or above.
rake generate_session_store
注1:
syntax error on line 8, col 2: ` encoding: utf8'
修改password(密码前加空格)
9. 生成数据库表结构, 在redmine根目录下运行:
RAILS_ENV=production rake db:migrate
10. 在数据库插入默认数据,选择zh:
RAILS_ENV=production rake redmine:load_default_data
11.Test the installation by running WEBrick web server:
ruby script/server webrick -e production
备注:-d 后台启动
12访问
login: admin
password: admin
==============================================================================
参考:
1.
2.
阅读(1184) | 评论(0) | 转发(0) |