git 如何更改 Gitlab 的 8080 端口(CE - Omnibus 版本)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35953529/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to change the Gitlab's 8080 port (CE - Omnibus version)?
提问by JaeYoungHwang
I am now using the Gitlab(omnibus version) to store the source code to my PC.
我现在使用 Gitlab(omnibus 版本)将源代码存储到我的 PC 上。
I would like to change the 8080 port to another port.
我想将 8080 端口更改为另一个端口。
To change the 8080 port to another, I try to change configuration file. (e.g. Gitlab.rb(unicorn), Gitlab.yml(nginx)) but server is still run on 8080 port...
要将 8080 端口更改为另一个端口,我尝试更改配置文件。(例如 Gitlab.rb(unicorn), Gitlab.yml(nginx)) 但服务器仍然在 8080 端口上运行......
How to change the Gitlab's 8080 port to another port?? (e.g. port 9999 ...)
如何将Gitlab的8080端口改成另一个端口??(例如端口 9999 ...)
Thank you!!
谢谢!!
采纳答案by Kai
Edit the GitLab settings file /etc/gitlab/gitlab.rb
and set the parameter external_url
to http://hostname:9999
.
编辑 GitLab 设置文件/etc/gitlab/gitlab.rb
并将参数设置external_url
为http://hostname:9999
.
Don't forget to reconfigure GitLab afterwards: gitlab-ctl reconfigure
之后不要忘记重新配置 GitLab: gitlab-ctl reconfigure