进入终端修改以下文件即可。

vim /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
## GitLab settings
  gitlab:
    ## Web server settings (note: host is the FQDN, do not include http://)
    host: localhost         >> 这里改为主机的IP即可
    port: 80
    https: false

    # Uncommment this line below if your ssh host is different from HTTP/HTTPS one
    # (you'd obviously need to replace ssh.host_example.com with your own host).
    # Otherwise, ssh host will be set to the `host:` value above

 

重启GitLab  

gitlab-ctl restart

OK!!

GitLab 项目创建后地址由Localhost改为实际IP的方法

 

相关文章:

  • 2021-11-18
  • 2022-02-27
  • 2022-01-15
  • 2021-12-06
  • 2022-01-07
  • 2022-02-13
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2021-07-04
  • 2022-01-03
  • 2021-09-20
  • 2021-12-03
相关资源
相似解决方案