标签:for 根据 method eth alt upd 技术 mamicode inf
现象描述: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;
标签:for 根据 method eth alt upd 技术 mamicode inf
原文地址:https://blog.51cto.com/lifeng/2540957