windows 下可以通过 sc 命令添加服务
sc create gogs start= auto binPath= ""C:\gogs\gogs.exe" web --config "C:\gogs\conf\app.ini""
sc create nginx start= auto binPath= ""C:\nginx\nginx.exe" -p "C:\nginx"" DisplayName= nginx-server
windows 下可以通过 sc 命令添加服务
sc create gogs start= auto binPath= ""C:\gogs\gogs.exe" web --config "C:\gogs\conf\app.ini""
sc create nginx start= auto binPath= ""C:\nginx\nginx.exe" -p "C:\nginx"" DisplayName= nginx-server