Windows 下Redmine-1.1.3的安装

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介: Redmine是一个灵活的跨平台的项目管理与缺陷跟踪管理工具 。具体的特征,可访问redmine—项目管理工具下面介绍一下Windows下Redmine的安装步骤。

Redmine是一个灵活的跨平台的项目管理与缺陷跟踪管理工具 。具体的特征,可访问 redmine—项目管理工具

下面介绍一下Windows下Redmine的安装步骤。

 

  1. 给DOS添加ruby运行环境(下载并安装 rubyinstaller-1.8.7-p249-rc2.exe)
    下载地址:http://rubyforge.org/frs/?group_id=167&release_id=42563
  2. 安装Redmine所需的运行环境
    安装完rubyinstaller后, 点击开始菜单,选择 Start Command Prompt with Ruby
    进入含有ruby环境的DOS界面,依次执行如下命令:
    gem install rake
    gem install -v=1.0.1 rack
    gem install mysql
    gem install -v=2.3.5 rails
  3. 数据库的安装和创建
    下载并安装MySQL数据库 ,下载地址: http://dev.mysql.com/downloads/mysql/

    进入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';
  4. 下载Redmine压缩包 (redmine-0.9.3.zip)
    下载地址 http://rubyforge.org/frs/?group_id=1850

    解压并进入解压后目录的目录,将config/database.yml.example 重命名为 config/database.yml,
    并修改链接数据库所需要的参数,以下是修改信息,加粗部分是修改的内容:

    production:
      adapter: mysql
      database: redmine
      host: localhost
      username: redmine
    
    
    
    
      password: redmine
    
    
    
    
      encoding: utf8
    
  5. 生成session密钥,执行数据迁移并载入Redmine默认配置(这一步需要先进入redmine根目录,再执行以下命令)
    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

    1. 下载地址 http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
    2. 然后后把libmySQL.dll复制到 Ruby/bin/目录下(你安装rubyinstaller的目录)
    也有可能显示以下错误:
    undefined local variable or method `version_requirements' for #<Rails::GemDependency:0xXXXXXXX> error也有解决办法,在/redmine/config/environment.rb开头加入:
    if Gem::VERSION >= "1.3.6"
    module Rails
    class GemDependency
    def requirement
    r = super
    (r == Gem::Requirement.default) ? nil : r
    end
    end
    end
    end
  6. 至此,Redmine安装已经完毕,下面用Redmine自带的Webrick服务器运行Redmine,测试是否安装成功
    在Redmine的根目录输入命令
     ruby script/server

    打开浏览器,输入 http://localhost:3000 如果页面正常显示,则说明已经成功安装。

如果你用的操作系统是Linux, 可参见 Debian/Linux下Redmine的安装步骤

 

转自:http://blog.ossxp.com/2010/04/1066/,红色字为我的标注

相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
1月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
55 0
|
1月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2003 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2003 操作系统保姆级教程(附链接)
47 0
|
1月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows 7 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows 7 操作系统保姆级教程(附链接)
80 0
如何在 VM 虚拟机中安装 Windows 7 操作系统保姆级教程(附链接)
|
1月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows XP 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows XP 操作系统保姆级教程(附链接)
109 0
|
17天前
|
安全 Windows
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
22 1
|
28天前
|
Linux 数据安全/隐私保护 Docker
linux和windows中安装emqx消息服务器
linux和windows中安装emqx消息服务器
27 0
|
29天前
|
物联网 Windows
安装windows 10操作系统
安装windows 10操作系统
43 1
|
1月前
|
Windows
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
|
1月前
|
应用服务中间件 nginx Windows
windows下快速安装nginx 并配置开机自启动
windows下快速安装nginx 并配置开机自启动
windows下快速安装nginx 并配置开机自启动
|
1月前
|
监控 安全 Java
ElasticSearch在Windows上的下载与安装
ElasticSearch在Windows上的下载与安装