Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Building Redmine based on Windows Server 2012 R2 x64

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Highlight:

Reference document: http://www.redmine.org/projects/redmine/wiki/RedmineInstall

Mysql and redmine are on the same host, and mysql can be deployed separately during actual deployment.

Integration Apache/Nginx is not included in this article.

The following is feasible for testing on a virtualbox virtual machine.

OS environment

Operating system: Windows Server 2012 R2 x64 English Standard Edition (MSDN download ISO)

After installing the system, install the following patch, which can be downloaded from Microsoft's official website:

Clearcompressionflag.exe

Vcredist_x64.exe

Windows8.1-KB2919355-x64.msu

Windows8.1-KB2919442-x64.msu

Windows8.1-KB2932046-x64.msu

Windows8.1-KB2934018-x64.msu

Windows8.1-KB2937592-x64.msu

Windows8.1-KB2938439-x64.msu

Windows8.1-KB2959977-x64.msu

Database building

After downloading mysql-5.5.59-winx64.msi, complete the installation according to the installation wizard and actual requirements, execute the following sql to create empty database redmine and user redmine, and give user redmine all permissions.

CREATE DATABASE redmine CHARACTER SET utf8

CREATE USER 'redmine'@'Server2012-05' IDENTIFIED BY' redmine'

GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'Server2012-05'

Note: there is a problem with the compatibility between the recommended version of mysql-5.5,5.5 and redmine. I have tried many versions myself and struggled for a long time. Finally, it is most convenient to use mysql-5.5.

Redmine installation

(1) deploy Redmine application package

Download the Redmine package from http://www.redmine.org/releases/redmine-3.4.4.zip and extract it to C:\ redmine-3.4.4

(2) install ruby and rubyGems

Download and install the following software according to the default settings of the installation wizard. For download links, see references:

Rubyinstaller-2.3.3-x64.exe

DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe

After installation, modify the environment variable path and add C:\ Ruby23-x64\ bin,C:\ DevKit\ bin and C:\ DevKit\ mingw\ bin, as shown below:

% SystemRoot%\ system32;%SystemRoot%;%SystemRoot%\ System32\ Wbem

% SYSTEMROOT%\ System32\ WindowsPowerShell\ v1.0\

C:\ Program Files\ MySQL\ MySQL Server 5.5\ bin;C:\ Ruby23-x64\ bin;C:\ DevKit\ bin;C:\ DevKit\ mingw\ bin

Confirm the version:

C:\ Windows\ system32 > ruby-v

Ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]

C:\ Windows\ system32 > gem-v

2.5.2

(3) install bundle > = 1.5.0

Execute in cmd:

Gem install bundle

(4) install other dependent packages

Modify C:\ redmine-3.4.4\ Gemfile to change gem "mysql2", "~ > 0.4.6" to gem "mysql2", "0.4.6".

Cd c:\ redmine-3.4.4

Bundle install-without development test rmagick

(5) generate session key

Cd c:\ redmine-3.4.4

Bundle exec rake generate_secret_token

(6) generate database structure

Cd c:\ redmine-3.4.4

Set RAILS_ENV=production

Bundle exec rake db:migrate

(7) start Redmine

Cd c:\ redmine-3.4.4

Ruby bin/rails server-e production-b 0.0.0.0

(8) Log in to Redmine

Access http://Redmine_Host_IP:3000 from any machine in the local area network

The default account and password is admin/admin.

Use admin account to log in, the system will force the user to change the password, please keep in mind the modified password!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report