8080 端口上的 Gitlab [英] Gitlab on port 8080

查看:53
本文介绍了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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆