GitLab服務器IP地址修改
gitlab安裝介紹:https://about.gitlab.com/downloads/#centos7
剛搭建好的gitlab在GitLab上新建一個項目test_gitlab,剛開始倉庫地址是http://127.0.0.1/yulei/test_gitlab.git
我的centos7的連接ip是192.168.6.129
把localhost 換成本機的IP地址,修改方式如下:
修改gitlab.yml文件:
cd /opt/gitlab/embedded/service/gitlab-rails/config
修改gitlab.yml文件
vim gitlab.yml
將127.0.0.1改成192.168.6.129
重啟GitLab
gitlab-ctl restart
刷新瀏覽器就變了