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