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 when actually deployed.
This article does not include integrated Apache/nginx.
The following content is tested on the VirtualBox virtual machine.
Operating system: Windows Server R2 x64 English Standard Edition (MSDN download ISO)
After installing the system, install the following patches, which can be downloaded from the official Microsoft 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
After download Mysql-5.5.59-winx64.msi follow the installation wizard and the actual requirements to complete the installation, installation completed, execute the following SQL to create an empty database Redmine and user redmine, and give the user redmine all permissions.
CREATE DATABASE redmine CHARACTER SET UTF8;
CREATE USER ' redmine ' @ ' server2012-05 ' identified by ' redmine ';
GRANT all privileges the redmine.* to ' redmine ' @ ' server2012-05 ';
Note: The recommended use of mysql-5.5,5.5 after the version and Redmine compatibility problems, I tried many versions myself, toss for a long time, and finally the most convenient with mysql-5.5.
(1) Deploy the Redmine app package
Download Redmine tarball from Http://www.redmine.org/releases/redmine-3.4.4.zip and unzip to C:\redmine-3.4.4
(2) installing Ruby, RubyGems
Download and follow the installation Wizard's default settings to install the following software, download the link to see the reference:
Rubyinstaller-2.3.3-x64.exe
Devkit-mingw64-64-4.7.2-20130224-1432-sfx.exe
After installation, modify the environment variable path, adding C:\ruby23-x64\bin,c:\devkit\bin and C:\DevKit\mingw\bin as follows:
%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 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) installing other dependent packages
Modify the C:\redmine-3.4.4\Gemfile, change the 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 secret key
CD c:\redmine-3.4.4
Bundle EXEC Rake Generate_secret_token
(6) building the 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) login Redmine
Access from any machine within the LAN http:/redmine_host_ip£ 3000
The default account and password are admin/admin.
Use the Admin account login, the system will force users to change the password, please keep in mind the modified password!
Windows Server-based R2 x64 build Redmine