你问的“CentOS GitLab 怎么破”,我需要先澄清一下你的真实需求,避免产生误解:
这是合法运维操作,方法如下:
gitlab-rails console -e production
(旧版本可能是 gitlab-rails console production)
user = User.where(id: 1).first
user.password = '新密码'
user.password_confirmation = '新密码'
user.save!
gitlab-ctl restart
可以进 console 改邮箱:
user = User.find_by(username: 'root')
user.email = 'you@example.com'
user.save!
这是违法行为,违反《网络安全法》《刑法》相关条款,我不能提供任何帮助。
可以发具体报错,比如:
gitlab-ctl status 输出/var/log/gitlab/ 报错我可以帮你排错。
你具体是哪种情况?