redmine Windows装配

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介: 原文:http://www.myexception.cn/windows/1219064.html   redmine Windows安装 官方地址:http://www.redmine.org/ 所需环境介绍:http://www.

原文:http://www.myexception.cn/windows/1219064.html

 

redmine Windows安装

官方地址:http://www.redmine.org/

所需环境介绍:http://www.redmine.org/projects/redmine/wiki/RedmineInstall#Requirements

The required Ruby versions for a given Redmine version is:

Redmine version Supported Ruby versions Rails version used Supported RubyGems versions

Redmine version Supported Ruby versions Rails version used
current trunk ruby 1.8.72, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2 Rails 3.2.13
2.3.0 ruby 1.8.72, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2 Rails 3.2.13
2.2.4 ruby 1.8.72, 1.9.2, 1.9.3, jruby-1.6.7 Rails 3.2.13

我下载的redmine-2.2.3.zip版本进行安装。

下载rubygems-1.8.25.zip:http://files.rubyforge.vm.bytemark.co.uk/rubygems/

下载rails-ftw-v0.11-1.9.3-3.2.8.exe:http://railsftw.bryanbibat.net/

下载mysql-5.1.62-win32:http://dev.mysql.com/downloads/

下载DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe:https://github.com/oneclick/rubyinstaller/downloads/

下载RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip:http://files.rubyforge.vm.bytemark.co.uk/rmagick/

 

1.安装rails-ftw-v0.11-1.9.3-3.2.8.exe,全部勾上,我安装在E:\RailsFTW193盘。

2.解压redmine-2.4.1.zip到E:\redmine-2.4.1盘。

3.安装DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe。释放到E:\DevKit-tdm-32-4.5.2文件夹下面.

4.dos进入目录执行:

 C:\>E:

E:\>cd E:\DevKit-tdm-32-4.5.2

5.解压rubygems-1.8.25.zip到D:\rubygems-1.8.25,dos进入目录执行:

 

D:\rubygems-1.8.25>gem install bundler

Fetching: bundler-1.2.4.gem (100%)

Successfully installed bundler-1.2.4

1 gem installed

Installing ri documentation for bundler-1.2.4...

Installing RDoc documentation for bundler-1.2.4...

 

D:\rubygems-1.8.25>bundle install -without development test

bundle install requires at least 0 argument: "bundle install".

 

 6.解压RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip,运行ImageMagick-6.5.6-8-Q8-windows-dll.exe,install…C++勾选上。

7.dos执行gem install rmagick-2.12.0-x86-mswin32.gem。

  注意:D:\ImageMagick-6.5.6-Q8是RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip的解压目录,而非安装目录

 D:\ImageMagick-6.5.6-Q8>gem install rmagick-2.12.0-x86-mswin32.gem

Successfully installed rmagick-2.12.0-x86-mswin32

1 gem installed

Installing ri documentation for rmagick-2.12.0-x86-mswin32...

Installing RDoc documentation for rmagick-2.12.0-x86-mswin32...

 

dos执行gem liset就看到rmagick (2.12.0 mswin32)安装成功。如果列表里面有mysql2 (0.3.11 x86-mingw32)就不安装mysql2,否则就gem install mysql2

8.验证版本信息:

 

D:\ImageMagick-6.5.6-Q8>rails --version

Rails 3.2.8

 

D:\ImageMagick-6.5.6-Q8>rake --version

rake, version 0.9.2.2

 

执行bundle install

 

9.创建数据库redmine。

10.复制D:\redmine-2.2.3\config\database.yml.example重命名database.yml,红色是修改区,修改如下:

production:

  adapter: mysql2

  database: redmine

  host: localhost

  username: root

  password: cj19860811

  encoding: utf8

11.dos进入D:\redmine-2.2.3\后执行rake generate_secret_token,出现如下问题:

D:\redmine-2.2.3\config>rake generate_secret_token

(in D:/redmine-2.2.3)

←[31mCould not find gem 'rails (= 3.2.12) x86-mingw32' in the gems available on this machine.←[0m

←[33mRun `bundle install` to install missing gems.←[0m

 

D:\redmine-2.2.3\config>gem uninstall rails

Successfully uninstalled rails-3.2.8

 

D:\redmine-2.2.3\config>gem install rails -v=3.2.12

重新安装版本即可。这里要等一会儿。如果还有其他版本不对的都重新安装一次。

 

D:\redmine-2.2.3\config>rake generate_secret_token

(in D:/redmine-2.2.3)

←[31mCould not find gem 'rmagick (>= 2.0.0) x86-mingw32' in the gems available on this machine.←[0m

←[33mRun `bundle install` to install missing gems.←[0m

 

D:\redmine-2.2.3\config>gem uninstall rmagick

Remove executables:

        wmf2eps.exe, wmf2fig.exe, wmf2gd.exe, wmf2svg.exe

 

in addition to the gem? [Yn]  y

Removing wmf2eps.exe

Removing wmf2fig.exe

Removing wmf2gd.exe

Removing wmf2svg.exe

Successfully uninstalled rmagick-2.12.0-x86-mswin32

 

下载RMagick-2.0.0-ImageMagick-6.3.7-8-Q8.zip,重复之前安装2.12.0的操作。

最后别忘了执行:bundle install --without development test rmagick

D:\redmine-2.2.3\config>bundle install --without development test rmagick

Using rake (10.0.3)

Using i18n (0.6.1)

Using multi_json (1.6.1)

Using activesupport (3.2.12)

Using builder (3.0.0)

Using activemodel (3.2.12)

Using erubis (2.7.0)

Using journey (1.0.4)

Using rack (1.4.5)

Using rack-cache (1.2)

Using rack-test (0.6.2)

Using hike (1.2.1)

Using tilt (1.3.3)

Using sprockets (2.2.2)

Using actionpack (3.2.12)

Using mime-types (1.21)

Using polyglot (0.3.3)

Using treetop (1.4.12)

Using mail (2.4.4)

Using actionmailer (3.2.12)

Using arel (3.0.2)

Using tzinfo (0.3.35)

Using activerecord (3.2.12)

Using activeresource (3.2.12)

Using coderay (1.0.8)

Using rack-ssl (1.3.3)

Using json (1.7.7)

Using rdoc (3.12.1)

Using thor (0.17.0)

Using railties (3.2.12)

Using jquery-rails (2.0.3)

Using mysql2 (0.3.11)

Using net-ldap (0.3.1)

Using pg (0.14.1)

Using ruby-openid (2.1.8)

Using rack-openid (1.3.1)

Using bundler (1.2.4)

Using rails (3.2.12)

Using sqlite3 (1.3.7)

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

 

D:\redmine-2.2.3\config>rake generate_secret_token

(in D:/redmine-2.2.3)

终于没有错了。

12.创建数据库结构信息。

D:\redmine-2.2.3\config>SET RAILS_ENV=production

D:\redmine-2.2.3\config>rake db:migrate

此处省略......

D:\redmine-2.2.3\config>rake redmine:load_default_data

(in D:/redmine-2.2.3)

选择zh

Select language: ar, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, fa, fi, fr, gl, he, hr, hu,

id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk

, vi, zh, zh-TW [en] zh

====================================

Default configuration data loaded.

13.启动服务。

D:\redmine-2.2.3\config>rails server

=> Booting WEBrick

=> Rails 3.2.12 application starting in production on http://0.0.0.0:3000

=> Call with -d to detach

=> Ctrl-C to shutdown server

14.打开http://localhost:3000/就可以看到redmine的窗口了。 用账户admin 密码admin登录 进入系统之后修改语言为中文在myaccount和setting里面修改。 

 

如果你闲上面的安装太过复杂,可以去这里:http://bitnami.org/zh_cn/stack/redmine

下载对应版本进行安装。

 

 

 

 

相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
关系型数据库 MySQL 数据库
Windows下安装Redmine
参考链接:http://www.cnblogs.com/afarmer/archive/2011/08/06/2129126.html  最新教程:http://www.myexception.cn/windows/1219064.html   工作中学的东西很实用,Redmine就是公司使用的项目管理平台。
2082 0
|
测试技术 Windows
Redmine与Windows AD集成设置
Redmine的账号支持跟LDAP集成,以下是在WINDOWS AD账号的集成配置过程。 首先下载一个微软的dsquery.exe工具,用来查询自己的账户信息。
988 0
|
Windows
Windows下Redmine插件安装
把插件解压出来拷到C:\Program Files\BitNami Redmine Stack\apps\redmine\vendor\plugins目录, C:\Program Files\BitNami Redmine Stack\apps\re...
1591 0
|
关系型数据库 MySQL 数据库
在windows server2003下安装Redmine
原文:在windows server2003下安装Redmine   参考文献:Windows下使用_Ruby1.9.3安装RedMine2.2.3  参考资料:http://www.redmine.
1110 0
|
1月前
|
安全 数据安全/隐私保护 Windows
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
|
1月前
|
存储 安全 网络安全
铁壁如墙-WINDOWS SERVER 2019勒索病毒终极防御指南
铁壁如墙-WINDOWS SERVER 2019勒索病毒终极防御指南
|
1月前
|
网络协议 数据安全/隐私保护 Windows
Windows Server 各版本搭建域控制器实现通过域管理用户(03~19)
Windows Server 各版本搭建域控制器实现通过域管理用户(03~19)
45 1
|
1月前
|
存储 数据安全/隐私保护 索引
Windows Server 各版本搭建文件服务器实现共享文件(03~19)
Windows Server 各版本搭建文件服务器实现共享文件(03~19)
128 1
|
1月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
56 0
|
3月前
|
缓存 网络协议 数据安全/隐私保护
[运维笔记] - (命令).Windows server常用网络相关命令总结
[运维笔记] - (命令).Windows server常用网络相关命令总结
185 0