微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Gogs安装错误

环境操作系统: Centos7

面板: VestaCP(Nginx

域名: my.exgitrepo.com(本地)

IP: 192.168.1.13(本地)用户admin

无法安装Windows 7 SDK(需要已安装.NET Framework 4)

在我的/home/admin/my.exgitrepo.com/public_html/我下载了gogs二进制文件,解压并运行./gogs web

在申请urlhttp://my.exgitrepo.com:3000/和域名my.exgitrepo.com上填写my.exgitrepo.com:3000上的表单

当按安装浏览器说ERR_EMPTY_RESPONSE

和控制台

[admin@271-appdevelopment-Box public_html]$ ./gogs web 2017/10/07 17:33:01 [ WARN] Custom config '/home/admin/web/my.exgitrepo.com/public_html/custom/conf/app.ini' not found,ignore this if you're running first time 2017/10/07 17:33:01 [TRACE] Custom path: /home/admin/web/271.git.com/public_html/custom 2017/10/07 17:33:01 [TRACE] Log path: /home/admin/web/271.git.com/public_html/log 2017/10/07 17:33:01 [TRACE] Log Mode: Console (Trace) 2017/10/07 17:33:01 [ INFO] Gogs 0.11.29.0727 2017/10/07 17:33:01 [ INFO] Cache Service Enabled 2017/10/07 17:33:01 [ INFO] Session Service Enabled 2017/10/07 17:33:01 [ INFO] sqlite3 Supported 2017/10/07 17:33:01 [ INFO] Run Mode: Development 2017/10/07 17:33:01 [ INFO] Listen: http://0.0.0.0:3000 [Macaron] 2017-10-07 17:33:19: Started GET / for 192.168.1.131 [Macaron] 2017-10-07 17:33:19: Completed GET / 302 Found in 288.498µs 2017/10/07 17:33:19 [TRACE] Session ID: e39a6882496f8db1 2017/10/07 17:33:19 [TRACE] CSRF Token: GbC454VgjEUCw1Ry_do3P2GkXcU6MTUwNzM3Nzc5OTA1MzYxOTgxMQ== [Macaron] 2017-10-07 17:33:19: Started GET /install for 192.168.1.131 2017/10/07 17:33:19 [TRACE] Session ID: e39a6882496f8db1 2017/10/07 17:33:19 [TRACE] CSRF Token: GbC454VgjEUCw1Ry_do3P2GkXcU6MTUwNzM3Nzc5OTA1MzYxOTgxMQ== 2017/10/07 17:33:19 [TRACE] Template: install [Macaron] 2017-10-07 17:33:19: Completed GET /install 200 OK in 35.710305ms

点击安装下面的响应

[Macaron] 2017-10-07 17:38:21: Started POST /install for 192.168.1.131 2017/10/07 17:38:21 [TRACE] Session ID: e39a6882496f8db1 2017/10/07 17:38:21 [TRACE] CSRF Token: GbC454VgjEUCw1Ry_do3P2GkXcU6MTUwNzM3Nzc5OTA1MzYxOTgxMQ== 2017/10/07 17:38:23 [TRACE] Custom path: /home/admin/web/my.exgitrepo.com/public_html/custom 2017/10/07 17:38:23 [TRACE] Log path: /home/admin/web/my.exgitrepo.com/logs 2017/10/07 17:38:23 [TRACE] Log Mode: File (Trace) 2017/10/07 17:38:23 [ INFO] Gogs 0.11.29.0727

我可以看到使用表创build的数据库和日志文件是空的。

调试几个小时后,我才知道这是公用文件夹许可的问题。

chown admin:admin -R /home/admin/web/my.exgitrepo.com/public_html/public/

gogs ,控制台输出由于权限而挂起,并显示关于权限问题的输出

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐