重置gitlab管理员密码
2016-06-27 13:52
483 查看
shell>cd /home/git/gitlab shell> su git shell>bundle exec rails console production irb(main):007:0> user = User.where(email: 'admin@local.host').first //email 为gitlabuser 账户,我的是默认的管理员账户 irb(main):007:0>user.password = 'yourpassword' //密码必须至少8个字符 irb(main):007:0>user.save! // 如没有问题 返回true
相关文章推荐
- android wifi 无线调试
- 运维入门
- 动态清空 nohup 输出文件
- install scrapy with pip and easy_install
- Linux Shell常用技巧
- Shell 脚本编程陷阱
- Patrol 7 架构下?的处理方法
- 清除IE分级审查密码
- 华为路由器密码恢复
- 注册表导出管理员密码文件
- 路由器版本与密码恢复
- shell字符串操作详解
- 密码知识教程一
- 密码破解全教程
- 通过批处理修改FTP账号和密码
- Shell中删除某些文件外所有文件的3个方法
- redis中修改配置文件中的端口号 密码方法
- Ruby中执行Linux shell命令的六种方法详解
- 更改Mysql root用户密码