gitlab重置密码

当忘记GitLab的root密码时,通过终端重置的方法。本文介绍了如何在没有root密码的情况下,通过Ruby on Rails控制台找回并修改GitLab的root密码。
摘要由CSDN通过智能技术生成

ruby没怎么学,自己搭建的gitlab的root密码又忘了,幸好看见此帖子,试验ok

http://roland.kierkels.net/git/reset-your-gitlab-root-password-from-a-terminal/

RESET YOUR GITLAB ROOT PASSWORD FROM A TERMINAL

Seriously ‘Invalid email or password’. I know for sure that it was correct, or wasn’t it? Are you in the same situation and resetting your password the old school way doesnt work for you then here is a solution to hack your back into GitLab. To make this work you need of course root access to your GitLab server.

Start by logging into your server with root privileges. Then start a Ruby on Rails console. Don’t worry if you have never worked before in Ruby, I hadn’t too, its really easy!

Start the console with this command:

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值