解决办法 vi /etc/gitlab/gitlab.rb 将 external_url 'xxx' 改成 external_url= 'xxx' 如图:
vi /etc/gitlab/gitlab.rb
external_url 'xxx'
external_url= 'xxx'