gitlab忘记密码如何重置

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

猜你喜欢

转载自www.cnblogs.com/wlzjdm/p/9029850.html