赞
踩
学习:
Ubuntu 20.04 搭建gitlab_爱做梦Di猪的博客-CSDN博客_ubuntu20安装gitlab
更改代码仓库位置
修改gilab管理员密码
gitlab修改密码的地方(5分钟带你重置Gitlab管理员账户密码)_斜杠青年工作室
- root@vm-gitlab:/opt/gitlab/bin# gitlab-rails console -e production
- --------------------------------------------------------------------------------
- Ruby: ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
- GitLab: 15.1.2 (ea7455c8292) FOSS
- GitLab Shell: 14.7.4
- PostgreSQL: 13.6
- ------------------------------------------------------------[ booted in 17.70s ]
- Loading production environment (Rails 6.1.4.7)
- irb(main):001:0> user = User.where(id: 1).first
- => #<User id:1 @root>
- irb(main):002:0> user.password = 'admin1234'
- => "admin@bosc"
- irb(main):003:0> user.password_confirmation = 'admin1234'
- => "admin@bosc"
- irb(main):004:0> user.save
- => true
- irb(main):005:0> exit
- root@vm-gitlab:/opt/gitlab/bin#
-
-
- admin1234 就是root的密码
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。