现象:

1 查看安装路径
ps -ef|grep gitlab
2 查找服务配置文件
find / -name database.yml
cat /var/opt/gitlab/gitlab-rails/etc/database.yml
production:
adapter: postgresql
encoding: unicode
collation:
database: gitlabhq_production
pool: 10
username: "gitlab"
password:
host: "/var/opt/gitlab/postgresql"
port: 5432
socket:
sslmode:
sslcompression: 0
sslrootcert:
sslca:
load_balancing: {"hosts":[]}
prepared_statements: false
statements_limit: 1000
fdw:
3 查看/etc/passwd文件里边gitlab对应的系统用户
cat /etc/passwd<
本文介绍了如何在GitLab中去除双重认证的过程,包括查看安装路径、定位服务配置文件、检查系统用户、连接到gitlabhq_production数据库进行特定字段的用户信息修改,最终成功禁用双因子认证并能正常登录。
订阅专栏 解锁全文
4万+

被折叠的 条评论
为什么被折叠?



