- 登录 GitLab 服务器,进入 GitLab 控制台:
gitlab-rails console
- 获取管理员用户(管理员用户名:root):
user = User.where(@root).first
- 修改密码:
user.password='12345678'
- 保存密码:
user.save!
GitLab 重置管理员密码
于 2021-03-12 17:07:59 首次发布
gitlab-rails console
user = User.where(@root).first
user.password='12345678'
user.save!