码迷,mamicode.com
首页 > 其他好文 > 详细

gitlab关闭登录选项的恢复

时间:2020-10-10 18:11:35      阅读:53      评论:0      收藏:0      [点我收藏+]

标签:for   根据   method   eth   alt   upd   技术   mamicode   inf   

现象描述:
登录时提示:No authentication methods configured.
技术图片
gitlab版本:10.0.0
操作方法:
技术图片
复制命令如下:

root@lifeng-gitlab:~# cd /opt/gitlab/
root@lifeng-gitlab:/opt/gitlab# gitlab-psql gitlabhq_production
psql (9.6.3)
Type "help" for help.
gitlabhq_production=# update application_settings set password_authentication_enabled = true;
UPDATE 6
gitlabhq_production-# \q
root@lifeng-gitlab:/opt/gitlab#  gitlab-ctl restart

注:如果没有 postgresql客户端工具的话要安装,这个根据你自己的系统进行安装。
需要安裝的组件: postgresql-client-common postgresql-client

 ubuntu : apt install  postgresql-client-common  postgresql-client -y
 centos:yum install  postgresql-client-common  postgresql-client -y

网上也有一些针对不同gitlab版本操作数据的方法:
根据你的gitlab版本可以尝试下:

update application_settings SET signin_enabled=true;
update application_settings set password_authentication_enabled = true;

gitlab关闭登录选项的恢复

标签:for   根据   method   eth   alt   upd   技术   mamicode   inf   

原文地址:https://blog.51cto.com/lifeng/2540957

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!