GitLab-初始化root密码
忘记gitlab root密码,但能登录gitlab主机,可以通过此方法更改root密码
适用版本
13.* / 14.*
操作步骤
1 2 3 4 5 6 7 8 9 10 11 12 13
| cd /opt/gitlab/bin gitlab-rails console
u=User.where(id:1).first => u.password='12345678' => "12345678" u.password_confirmation='12345678' => "12345678" u.save! exit
|
老年佛系运维 | biglovewheat@126.com