如何更改 Gitlab 的 8080 端口(CE - Omnibus 版本)?

How to change the Gitlab's 8080 port (CE - Omnibus version)?

我现在正在使用Gitlab(omnibus版)将源代码存储到我的电脑上。

我想把8080端口改成别的端口

要更改8080 端口,我尝试更改配置文件。 (例如 Gitlab.rb(unicorn),Gitlab.yml(nginx))但服务器仍然在 8080 端口上 运行...

如何将Gitlab的8080端口改成别的端口?? (例如端口 9999 ...)

谢谢!!

编辑 GitLab 设置文件 /etc/gitlab/gitlab.rb 并将参数 external_url 设置为 http://hostname:9999

之后不要忘记重新配置 GitLab:gitlab-ctl reconfigure