标签:conf 添加 star 解决方法 ESS bsp 执行 rest 恢复
Gitlab迁移需同版本迁移,恢复过程会出现如下提示:
WARNING: no privileges were granted for "public"
1. 编辑/var/opt/gitlab/postgresql/data/postgresql.conf
找到 listen_addresses = ‘‘
修改为 listen_addresses = ‘*‘
2. 编辑/var/opt/gitlab/postgresql/data/pg_hba.conf
在文件末尾添加如下两行:
local all all trust
host all all 127.0.0.1/32 trust
3. 重启gitlab
gitlab-ctl restart
4. 连入postgresql授权gitlab用户
cd /opt/gitlab/embedded/bin
su gitlab-psql
./psql -h 127.0.0.1 gitlabhq_production
ALTER USER gitlab WITH SUPERUSER;
\q
5. 再次执行gitlab恢复操作即可
标签:conf 添加 star 解决方法 ESS bsp 执行 rest 恢复
原文地址:https://www.cnblogs.com/xstyle/p/8984686.html