Linux&MySQL&PHP&Nginx&Apache&MSSQL&Shell
分类: 项目管理
2011-06-20 15:36:05
安装ruby
进入含有ruby环境的DOS界面,依次执行如下命令:
gem install -v=0.8.7 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';
解压redmine-1.2.0
将config/database.yml.example 重命名为 config/database.yml
修改数据库名,用户名,密码
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: redmine
encoding: utf8
添加MySQL的动态链接库文件 libmySQL.dll 到ruby/bin目录下
ruby窗口切换到redmine-1.2.0 目录下
生成session密钥,执行数据迁移并载入Redmine默认配置
set RAILS_ENV=production
rake config/initializers/session_store.rb
rake db:migrate
rake redmine:load_default_data
zh即可
启动服务ruby script/server
打开 管理员用户名/密码 默认admin admin
重新启动服务需要执行以下4个命令
set RAILS_ENV=production
rake config/initializers/session_store.rb
rake redmine:load_default_data
ruby script/server