再见青春
分类: 系统运维
2023-02-23 17:11:50
1、修改gitlab.rb
vim /etc/gitlab/gitlab.rb
配置为:
postgresql['enable'] = true
3、修改pg_hba.conf
vim /var/opt/gitlab/postgresql/data/pg_hba.conf
注释Local行、增加下面行
host all all 0.0.0.0/0 trust
postgresql['listen_address'] = '0.0.0.0'
postgresql['port'] = 5432
postgresql['data_dir'] = "/var/opt/gitlab/postgresql/data"
2、gitlab-ctl reconfigure 等待报错
5、连接gitlabhq_production、用户名gitlab