windows 下如何安装redmine 管理系统

参考自:
https://blog.csdn.net/hasnext/article/details/53129245 Windows7下redmine-3.3.1的安装详解
https://blog.csdn.net/zhaoxy_thu/article/details/44310677 2015年Ubuntu最新Redmine的安装和配置
http://www.redmine.org/projects/redmine/wiki/RedmineInstall 官方wiki


系统:window7
版本:redmine-3.4.6

1.下载redmine

http://www.redmine.org/projects/redmine/wiki/Download
这里写图片描述

2.下载railsinstaller

http://railsinstaller.org/en
图省事,使用 RailsInstaller 来配置 Rails 和 Ruby。
这里写图片描述

安装railsinstaller 一路next,安装完成之后C盘会生成一个Sites的文件夹。
这里写图片描述

3.下载mysql 5.0以上的版本

https://dev.mysql.com/get/archives/mysql-installer/mysql-installer-community-5.7.19.0.msi


开始安装

这里写图片描述

1.安装railsinstaller-3.4.0.exe, 一路next。检测C盘是否有C:\Sites文件夹
2.安装mysql-installer-community-5.7.19.0。
这里写图片描述

安装.net4.0
https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=17718

这里写图片描述
这里写图片描述
这里写图片描述
这里写图片描述
没有microsoft visualc++2013 runtime
下载路径:
https://www.microsoft.com/zh-CN/download/details.aspx?id=40784


http://download.microsoft.com/download/F/3/5/F3500770-8A08-488E-94B6-17A1E1DD526F/vcredist_x64.exe vcredist_x64.exe
http://download.microsoft.com/download/F/3/5/F3500770-8A08-488E-94B6-17A1E1DD526F/vcredist_x86.exe vcredist_x86.exe


安装microsoft visualc++2013 runtime后
这里写图片描述
这里写图片描述

这里写图片描述
这里写图片描述
这里写图片描述
这里写图片描述

这里写图片描述


把mysql中lib下的libmysql.dll复制到 RailsInstaller下ruby2.3的bin文件中去

这里写图片描述
这里写图片描述

3.把redmine-3.4.6解压到C:\Sites
这里写图片描述

4.准备文件安装完成之后开始


4.1
这里写图片描述
在mysql的命令行中输入以下

CREATE DATABASE redmine CHARACTER SET utf8mb4;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';

这里写图片描述

4.2
配置数据库。将C:\Sites\redmine-3.4.6\config下的database.yml.example文件拷贝一份,改名为database.yml,打开文件进行编辑

主要目的是配置数据库的信息。由于我们bundler的时候去掉了development和test版本,所以只关注“production”部分就好了。修改如下:

# Default setup is given for MySQL with ruby1.9.
# Examples for PostgreSQL, SQLite3 and SQL Server can be found at the end.
# Line indentation must be 2 spaces (no tabs).

production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "my_password"
  encoding: utf8

打开cmd 进入到C:\Sites\redmine-3.4.6

gem list 查看已经安装的文件

安装前注意由于默认镜像国内无法访问,所以需要切换源。
输入 更改下载地址: gem sources -l 查看当前的下载地址.


C:\Sites\redmine-3.4.6> gem sources -l
*** CURRENT SOURCES ***

https://rubygems.org/

C:\Sites\redmine-3.4.6> gem sources --remove https://rubygems.org/
https://rubygems.org/ removed from sources

C:\Sites\redmine-3.4.6>gem source -a https://gems.ruby-china.com
Error fetching https://gems.ruby-china.com:
        SSL_connect returned=1 errno=0 state=error: certificate verify failed (h
ttps://gems.ruby-china.com/specs.4.8.gz)

C:\Sites\redmine-3.4.6>gem source -a http://gems.ruby-china.com
http://gems.ruby-china.com added to sources

C:\Sites\redmine-3.4.6> gem sources -l
*** CURRENT SOURCES ***

http://gems.ruby-china.com

C:\Sites\redmine-3.4.6>

然后安装 gem install mysql2
然后 bundle install --without development test rmagick安装所有需要的gems
安装过程中如果提示出错 根据提示内容安装所需要的 gem XXX -v=XXXX
一直到安装完成

生成一个随机的 Key , Rails 用它来加密 cookie ……

bundle exec rake generate_secret_token 

然后创建数据库结构,使用下面的命令

set RAILS_ENV=production
bundle exec rake db:migrate

使用下面的命令来向数据库中插入默认的配置数据,语言中文zh

  set RAILS_ENV=production  
  set REDMINE_LANG=zh
  bundle exec rake redmine:load_default_data  

执行下面的命令:

rails server webrick -e production

Bitnami redmine 的安装和使用

一键安装redmine
1.下载installer
https://blog.csdn.net/yuanbaode/article/details/79502674

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值