Chinaunix首页 | 论坛 | 博客
  • 博客访问: 240020
  • 博文数量: 59
  • 博客积分: 2661
  • 博客等级: 少校
  • 技术积分: 732
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-24 11:54
文章分类

全部博文(59)

文章存档

2013年(1)

2012年(8)

2011年(17)

2010年(33)

我的朋友

分类:

2010-07-31 11:27:39

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) |
给主人留下些什么吧!~~