Windows Server-based R2 x64 build Redmine

Source: Internet
Author: User
Tags redmine microsoft website

  • Highlight:

      1. Reference Document: Http://www.redmine.org/projects/redmine/wiki/RedmineInstall

      2. MySQL and Redmine are on the same host, and MySQL can be deployed separately when actually deployed.

      3. This article does not include integrated Apache/nginx.

      4. The following content is tested on the VirtualBox virtual machine.


      • OS Environment


    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


      • Database setup


    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.



      • Redmine Installation


    (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

    Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.