1. Download git for windows
1
|
https:
//github
.com
/git-for-windows/git/releases/download/v2
.15.0.windows.1
/Git-2
.15.0-64-bit.exe
|
2. Download NSSM:
1
|
https:
//nssm
.cc
/release/nssm-2
.24.zip
|
3. Download Gogs:
1
|
https:
//dl
.gogs.io
/0
.11.29
/windows_amd64
.zip
|
4. Install git for windows:
... Next ...
5. Install NSSM:
Unzip the installation package: Unzip the installation package
to D:\Git\NSSM
Set system variables:
"Control Panel" --> "System and Security"- -> "System"--> "Advanced System Settings"--> "Environment Variables"--> "System Variables"-->"Edit System Variables"
Add the NSSM file path "D:\Git" in the "Variable Value" project \NSSM\win64" (remember to add a half-width ";" before the path)
6. Add Gogs to the system service:
extract the installation package to: D:\Git\Gogs
New code repository directory: D:\Git\Gogs\data\repositories
Edit the system installation file: D:\Git\Gogs\scripts\windows\install-as-service.bat
Modify the following items: SET gogspath=D:\Git\Gogs (modify according to the actual installation directory)
Run the installation script with administrative privileges:
The installation is complete!
List of system services:
7. Install Gogs:
Enter in the browser: http://127.0.0.1:3000/
The following items should be specially set: database, warehouse root directory, URL address, port number, administrator account
8. Log in to the system:
1. Download git for windows
1
|
https:
//github
.com
/git-for-windows/git/releases/download/v2
.15.0.windows.1
/Git-2
.15.0-64-bit.exe
|
2. Download NSSM:
1
|
https:
//nssm
.cc
/release/nssm-2
.24.zip
|
3. Download Gogs:
1
|
https:
//dl
.gogs.io
/0
.11.29
/windows_amd64
.zip
|
4. Install git for windows:
... Next ...
5. Install NSSM:
Unzip the installation package: Unzip the installation package
to D:\Git\NSSM
Set system variables:
"Control Panel" --> "System and Security"- -> "System"--> "Advanced System Settings"--> "Environment Variables"--> "System Variables"-->"Edit System Variables"
Add the NSSM file path "D:\Git" in the "Variable Value" project \NSSM\win64" (remember to add a half-width ";" before the path)
6. Add Gogs to the system service:
extract the installation package to: D:\Git\Gogs
New code repository directory: D:\Git\Gogs\data\repositories
Edit the system installation file: D:\Git\Gogs\scripts\windows\install-as-service.bat
Modify the following items: SET gogspath=D:\Git\Gogs (modify according to the actual installation directory)
Run the installation script with administrative privileges:
The installation is complete!
List of system services:
7. Install Gogs:
Enter in the browser: http://127.0.0.1:3000/
The following items should be specially set: database, warehouse root directory, URL address, port number, administrator account
8. Log in to the system: