zoukankan      html  css  js  c++  java
  • GitLab忘记root密码

    [root@Harbor gitlab]# su - git
    -sh-4.2$ gitlab-
    gitlab-backup  gitlab-ctl     gitlab-psql    gitlab-rails/  gitlab-rake
    -sh-4.2$ gitlab-
    gitlab-backup  gitlab-ctl     gitlab-psql    gitlab-rails/  gitlab-rake
    -sh-4.2$ gitlab-rails console production
    DEPRECATION WARNING: Passing the environment's name as a regular argument is deprecated and will be removed in the next Rails version. Please, use the -e option instead. (called from require at bin/rails:4)
    --------------------------------------------------------------------------------
     GitLab:       12.4.2 (393a5bdafa2)
     GitLab Shell: 10.2.0
     PostgreSQL:   10.9
    --------------------------------------------------------------------------------
    Loading production environment (Rails 5.2.3)
    irb(main):001:0> user = User.where(id: 1).first
    => #<User id:1 @root>
    irb(main):002:0> user.password = '1qaz@WSX'
    => "1qaz@WSX"
    irb(main):003:0> user.password_confirmation = '1qaz@WSX'
    => "1qaz@WSX"
    irb(main):004:0> user.save!
    Enqueued ActionMailer::DeliveryJob (Job ID: 6b610a48-50b3-40d7-96bc-1363ac8bf3a0) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", #<GlobalID:0x00007f1ac6239028 @uri=#<URI::GID gid://gitlab/User/1>>
    => true
    irb(main):005:0>
    

  • 相关阅读:
    图形设计 X11
    软件安装 RPM SRPM YUM
    如何将excel表格中的纯数字删掉 空白行,然后删除
    考试机
    程序编译与运行
    基础设定与备份策略
    开机流程 模块管理 Loader
    让所有Excel数据格全部乘 某个数
    转:JDK1.8-Stream()使用详解
    转:IK分词原理
  • 原文地址:https://www.cnblogs.com/dalianpai/p/13022726.html
Copyright © 2011-2022 走看看