一.修改gitlab端口:
打開/etc/gitlab/gitlab.rb文件,修改以下幾點:
external_url "http://192.168.58.62:9999"
unicorn['listen'] = 'localhost'
unicorn['port'] = 9999
然后
#gitlab-ctl stop
#gitlab-ctl reconfugure
#gitlab-ctl start
如此,訪問localhost:9999即可
二.在卸載gitlab然后再次安裝執行sudo gitlab-ctl reconfigure的時候往往會出現:ruby_block[supervise_redis_sleep] action run,會一直卡無法往下進行!
1、按住CTRL+C強制結束;
2、運行:systemctl restart gitlab-runsvdir;
3、再次執行:gitlab-ctl reconfigure
三.reconfigure時:Is the server running locally and accepting connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
sudo chmod -R 755 /var/opt/gitlab/postgresql