8080 端口上的 Gitlab

编程入门 行业动态 更新时间:2024-10-25 20:27:34
本文介绍了8080 端口上的 Gitlab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我目前正在尝试在我的私人 Debian 服务器上安装 Gitlab 综合,它在端口 80 上运行良好,问题是我还有一个 Apache 服务器在端口 80 上侦听.所以我正在尝试让 Nginx 监听端口 8080 但由于某种原因我得到了一个"502Gitlab 没有响应"错误我已经编辑了 gitlab.rb 中的external_url"以及 nginx.conf 文件中服务器块下的端口号.没有快乐.

I'm currently in the process of trying to get Gitlab omnibus installed on my private Debian server, and it works perfectly on port 80, the problem is I also have an Apache server listening on port 80. So I'm trying to get Nginx listening on port 8080 but for some reason I'm getting a "502 Gitlab is not responding" Error I have edited both "external_url" in gitlab.rb and also the port number under the server block in the nginx.conf file. and no joy.

如果有人可以帮助我,那就太好了!

If someone could help me that would be great!

推荐答案

很可能你有另一个服务在 8080 上监听,我认为综合安装有一些服务挂钩 8080 - 只需使用 8081 代替.

Most likely you have another service listening on 8080, I think the omnibus install have some service hooking 8080 - just use 8081 instead.

我刚刚快速搜索了一下,发现是独角兽服务器正在使用原始综合安装程序监听 8080.

I just did a quick search and found that it's the unicorn server that is listening to 8080 with the original omnibus installer.

注意:您只需要更改 gitlab.rb 中的 external_url,无需为此编辑其他配置文件.

Note: You will only need to change the external_url in gitlab.rb, no other config file should have to be edited for this.

Edit#2: 正如@emeraldjava 所说,配置文件中有一个使用另一个独角兽端口的选项:#unicorn['port'] = '8080'

Edit#2: As @emeraldjava stated there is an option in the configuration file for using another unicorn port: #unicorn['port'] = '8080'

更多推荐

8080 端口上的 Gitlab

本文发布于:2023-08-07 13:58:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319434.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:端口   Gitlab

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!