gitlab web登入密码忘记以后可以用如下方式修改密码
shell>cd /home/git/gitlab
shell> su git
shell>bundle exec rails console production
irb(main):007:0> user = User.where(email: 'admin@local.host').first //email 为gitlabuser 账户,我的是默认的管理员账户
irb(main):007:0>user.password = 'yourpassword'   //密码必须至少8个字符
irb(main):007:0>user.save!  // 如没有问题 返回true

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-10-29
  • 2021-09-12
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2021-10-23
  • 2021-07-05
  • 2021-12-05
相关资源
相似解决方案