当前位置:   article > 正文

修改gitlab 去掉双重认证 Two-Factor Authentication_关闭git 2fa 双重认证

关闭git 2fa 双重认证

现象:

1 查看安装路径

ps -ef|grep gitlab

2 查找服务配置文件

  1. find / -name database.yml
  2. cat /var/opt/gitlab/gitlab-rails/etc/database.yml
  3. production:
  4. adapter: postgresql
  5. encoding: unicode
  6. collation:
  7. database: gitlabhq_production
  8. pool: 10
  9. username: "gitlab"
  10. password:
  11. host: "/var/opt/gitlab/postgresql"
  12. port: 5432
  13. socket:
  14. sslmode:
  15. sslcompression: 0
  16. sslrootcert:
  17. sslca:
  18. load_balancing: {"hosts":[]}
  19. prepared_statements: false
  20. statements_limit: 1000
  21. fdw:

3 查看/etc/passwd文件里边gitlab对应的系统用户

cat  /etc/passwd

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/609996
推荐阅读
相关标签
  

闽ICP备14008679号