[toc]
关闭gitlab双重认证
root用户登陆gitlab后提示如下,按什么都不管用
解决方法:直接修改数据库
1.查看 /etc/passwd
文件里边gitlab对应的系统用户
其中 gitlab-psql
就是gitlab系统用户
$ grep gitlab /etc/passwd
gitlab-www:x:995:992::/var/opt/gitlab/nginx:/bin/false
git:x:994:991::/var/opt/gitlab:/bin/sh
gitlab-redis:x:993:990::/var/opt/gitlab/redis:/bin/false
gitlab-psql:x:992:989::/var/opt/gitlab/postgresql:/bin/sh
gitlab-prometheus:x:991:988::/var/opt/gitlab/prometheus:/bin/sh