gitlab 修改root密码

[root@svr34 bin]# gitlab-rails console production
Loading production environment (Rails 4.2.5.2)
irb(main):001:0> user = User.where(id: 1).first
=> #<User id: 1, email: "admin@example.com", ...
irb(main):002:0> user.password=12345678
=> 12345678
irb(main):003:0> user.password_confirmation=12345678
=> 12345678
irb(main):004:0> user.save
=> true
irb(main):005:0> quit

 

posted on 2018-07-31 14:02  lvlv岁月流逝  阅读(152)  评论(0编辑  收藏  举报

导航