如何将gitlab的默认端口80更改为自定义端口号?
我尝试了两种方法:
在/etc/gitlab/gitlab.rb中设置端口
external_port "8888"
然后运行重新配置:
gitlab-ctl reconfigure
在/var/opt/gitlab/gitlab-rails/etc/gitlab.yml中设置端口
production: &base
#
# 1. GitLab app settings
# ==========================
## GitLab settings
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: gitlab.blitting.com
port: 8888
https: false
然后重新启动gitlab
gitlab-ctl stop
gitlab-ctl start
通过这两种方式,gitlab继续在默认的80端口号上运行。