➜ ~ gitlab-rails console productionLoading production environment (Rails 4.1.1)irb(main):001:0>
➜ ~ gitlab-rails console productionLoading production environment (Rails 4.1.1)irb(main):001:0> user = User.where(id:1).first=> #irb(main):002:0>
irb(main):002:0> user.password='66668888'=> "66668888"
irb(main):003:0> user.save!=> true#成功会反回true
注意管理员是:root(不知道为什么不是admin)