gitlab注册需要管理员审批

gitlab初始化_cicd_gitlab

[root@localhost bin]# gitlab-rails console -e production
--------------------------------------------------------------------------------
Ruby: ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]
GitLab: 15.4.6 (9cb97b6e1a9) FOSS
GitLab Shell: 14.10.0
PostgreSQL: 13.8
------------------------------------------------------------[ booted in 34.36s ]
Loading production environment (Rails 6.1.6.1)
irb(main):001:0> User.all #查看全部用户
=> #<ActiveRecord::Relation [#<User id:1 @root>, #<User id:2 @aaa>]>
irb(main):002:0> u=User.where(id:1).first
=> #<User id:1 @root>
irb(main):003:0> u.password='12345678'
=> "12345678"
irb(main):004:0> u.password_confirmation='12345678'
=> "12345678"
irb(main):005:0> u.save! #一定要加!
=> true
irb(main):006:0> exit
[root@localhost bin]#

用root/12345678即可登录

gitlab初始化_cicd_gitlab_02