striveCode icon indicating copy to clipboard operation
striveCode copied to clipboard

gitlab关闭了sign-in,web端无法登录

Open itstrive opened this issue 6 years ago • 0 comments

有些人部署完gitlab以后,想着关掉注册,结果可能手贱(或者网上的文章坑人),把sign-in给关闭了,结果你重新登录,发现没入口了。

别急,数据改改就好:

  • 进入到 gitlab部署的server服务器
  • 进入postsql
gitlab-psql gitlabhq_production
  • 执行Update语句修改即可
update application_settings set password_authentication_enabled = true;

输入: \q 退出

  • 重启gitlab服务器
gitlab-ctl restart

出现502别急,在稍微等等,服务器还在启动中。

itstrive avatar Aug 20 '19 12:08 itstrive