当前位置:首页>科技>go系统搭建教学windows下安装gogs
发布时间:2026-07-21阅读(1)
关于gogs
能够项github一样的创建仓库做团队协助。 对比了几个git-server。 gitlab gogs gitblit这几个工具。 gogs最适合。国人开发功能齐全。最关键的是跨平台。github上开源。golang编写。
工具软件准备
nssm install servername 安装nssm remove servername 移除nssm start servername 开启nssm stop servermame 停止nssm restart servername 重启nssm status servername 状态
:: This script relies on nssm.exe to work. :: please, download it and make it available on the system path, :: or copy it to the gogs path. :: https://nssm.cc/download :: This script itself should run in the gogs path, too. :: In case of startup failure, please read carefully the log file. :: Make sure Gogs work running manually with "gogs web" before running :: this script. :: And, please, read carefully the installation docs first: :: http://gogs.io/docs/installation :: To unistall the service, run "nssm remove gogs" and restart windows.
:: Set the folder where you extracted Gogs. Omit the last slash. SET gogspath=C:\Users\Administrator\Desktop\git-server\gogs
nssm install gogs "%gogspath%\gogs.exe" nssm set gogs AppParameters "web" nssm set gogs Description "A painless self-hosted Git service." nssm set gogs DisplayName "Gogs - Go Git Service" nssm set gogs Start SERVICE_DELAYED_AUTO_START nssm set gogs AppStdout "%gogspath%\gogs.log" nssm start gogs pause
```
修改gogspath,这个是gogs解压后的目录(gogs.exe所在目录)。
常见问题

上一篇:唱歌的小女孩简笔画
下一篇:如何注册qq号 怎样注册qq号
Copyright © 2024 有趣生活 All Rights Reserve吉ICP备19000289号-5 TXT地图HTML地图XML地图