[Gitlab] pagoda gitlab change the administrator account password

step:

a, switching directories:cd /opt/gitlab/bin

b, execute: sudo gitlab-rails console productioncommand to start initialization code

c, in irb(main):001:0>the back through u=User.where(id:1).firstto find and switch accounts ( User.allyou can view all users)

d, by u.password='12345678'setting a password is 12345678 (password here to see their favorite):

e, by u.password_confirmation='12345678'confirming the password again

f, by u.save!save (Remember Remember back!)

g, if you see in the above screenshot true, Congratulations, you have succeeded, perform exit to exit the current setup process can be.

h, back gitlab, you can log in through the root / 12345678 this a super administrator account

Guess you like

Origin www.cnblogs.com/richerdyoung/p/12009232.html