欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

gitlab 修改超级管理员密码

程序员文章站 2022-05-11 09:12:15
...

gitlab 修改超级管理员密码

官方修改密码:(http://docs.gitlab.com/ce/security/reset_root_password.html)

root权限登录gitlab server 服务器

[aaa@qq.com ~]# gitlab-rails console production
-------------------------------------------------------------------------------------
 Gitlab:       10.8.4 (2268d0c)
 Gitlab Shell: 7.1.2
 postgresql:   9.6.8
-------------------------------------------------------------------------------------
Loading production environment (Rails 4.2.10)
irb(main):001:0>  user = User.where(id: 1).first    
=> #<User id:1 @root>
irb(main):002:0> user.password=12345678
=> 12345678
irb(main):003:0> user.password_confirmation=12345678
=> 12345678
irb(main):004:0> user.save!
Enqueued ActionMailer::DeliveryJob (Job ID: 3ef37c47-4b3f-49e5-aa53-904e725bd1a8) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", gid://gitlab/User/1
=> true
irb(main):005:0> quit

gitlab 修改超级管理员密码

相关标签: Gitlab 修改密码