日期:2014-05-17 浏览次数:21217 次
?
gem install rake gem install -v=1.0.1 rack gem install mysql gem install -v=2.3.5 rails
进入mysql命令行,执行如下命令:
mysql> create database redmine character set utf8;
mysql> create user 'redmine'@'localhost' identified by 'redmine';
mysql> grant all privileges on redmine.* to 'redmine'
@'localhost';
解压并进入解压后目录的目录,将config/database.yml.example 重命名为 config/database.yml,
并修改链接数据库所需要的参数,以下是修改信息,加粗部分是修改的内容:
production: adapter: mysql database: redmine host: localhost username: redmine password: redmine encoding: utf8
set RAILS_ENV=production rake config/initializers/session_store.rb rake db:migrate rake redmine:load_default_data
如果出现以下异常:
Mysql::Error: query: not connected: CREATE TABLE 'schema_migrations' ('version varchar(255) NOT NULL) ENGINE=InnoDB
说明需要添加MySQL的动态链接库文件 libmySQL.dll
ruby script/server
打开浏览器,输入 http://localhost:3000 如果页面正常显示,则说明已经成功安装。
如果你用的操作系统是Linux, 可参见 Linux下Redmine的安装