Git server gogs Easy installation-windows environment

Source: Internet
Author: User
Tags unpack

1. Download git for Windows

Https://github.com/git-for-windows/git/releases/download/v2.15.0.windows.1/Git-2.15.0-64-bit.exe

2. Download NSSM:

Https://nssm.cc/release/nssm-2.24.zip

3. Download Gogs:

Https://dl.gogs.io/0.11.29/windows_amd64.zip

4. Install Git for Windows:
... Next ...

5, Installation NSSM:
Unpack the installation package:
Unpack the installation package to D:\Git\NSSM
Set System variables:
"Control Panel" and "System and Security"-"system" and "Advanced system Settings"-"Environment variables"-"System Variables"-"Edit System Variables"
Add the Nssm file path "D:\Git\NSSM\win64" to the "Variable Value" item (remember to add half-width ";" in front of the path)

6. Add Gogs to system service:
Install package extract to: D:\Git\Gogs
New Code Warehouse directory: D:\Git\Gogs\data\repositories
Editing system installation files: D:\Git\Gogs\scripts\windows\install-as-service.bat
Modify the following items: SET gogspath=d:\git\gogs (modified by actual installation directory)

To run the installation script with administrative privileges:

Installation is complete!

List of system services:

7, Installation Gogs:

In the browser, type: http://127.0.0.1:3000/

The following items are specifically set up: Database, repository root, URL address, port number, Administrator account

8. Login System:

[The END]

Git server gogs Easy installation-windows environment

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.