您的位置:首页 > 运维架构 > Shell

重置gitlab管理员密码

2016-06-27 13:52 483 查看
shell>cd /home/git/gitlab
shell> su git
shell>bundle exec rails console production
irb(main):007:0> user = User.where(email: 'admin@local.host').first //email 为gitlabuser 账户,我的是默认的管理员账户
irb(main):007:0>user.password = 'yourpassword'   //密码必须至少8个字符
irb(main):007:0>user.save!  // 如没有问题 返回true
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  shell gitlab 密码