step:
a, switching directories:cd /opt/gitlab/bin
b, execute: sudo gitlab-rails console production
command to start initialization code
c, in irb(main):001:0>
the back through u=User.where(id:1).first
to find and switch accounts ( User.all
you 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