gitlab解决一些问题

一.修改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

posted @ 2018-08-30 14:55  谢哥在彼方  阅读(2171)  评论(0编辑  收藏  举报