Gitlab忘记root密码

用Gitlab一段时间后就忘记root密码
官方修改方案

Start the console with this command

1
gitlab-rails console production

1
user = User.where(id: 1).first

or

1
user = User.find_by(email: 'admin@local.host')
1
2
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
1
user.save!
1
quit
-------------本文结束感谢您的阅读-------------