gitlab无法登录问题

在我第一次安装gitlab的时候发现登录页面是

正常的页面应该是

这种情况的主要原因是不是第一次登录,所以我们要找到原先的密码

解决方式:

bash 复制代码
[root@gitlab ~]# vim /etc/gitlab/initial_root_password
bash 复制代码
# WARNING: This value is valid only in the following conditions
#          1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).
#          2. Password hasn't been changed manually, either via UI or via command line.
#
#          If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.

Password: 复制这里的内容

# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.

在登录页面输入账号:root 密码:就是上文需要复制的地方。

如果对您有帮助的话可以点点赞,帮主播打打气,我会更加努力帮助大家解决问题,一起加油!!!

相关推荐
绵绵细雨中的乡音几秒前
深入理解 ET 与 LT 模式及其在 Reactor 模型中的应用
服务器·网络·php
HABuo32 分钟前
【linux文件系统】磁盘结构&文件系统详谈
linux·运维·服务器·c语言·c++·ubuntu·centos
Howrun7771 小时前
关于Linux服务器的协作问题
linux·运维·服务器
yunfuuwqi3 小时前
OpenClaw✅真·喂饭级教程:2026年OpenClaw(原Moltbot)一键部署+接入飞书最佳实践
运维·服务器·网络·人工智能·飞书·京东云
迎仔3 小时前
C-算力中心网络隔离实施方法:怎么搞?
运维·网络
代码游侠3 小时前
C语言核心概念复习——网络协议与TCP/IP
linux·运维·服务器·网络·算法
你真是饿了3 小时前
6.库制作与原理
linux·服务器
Zach_yuan4 小时前
深入浅出 JSONCpp
linux·服务器·网络·c++
oMcLin4 小时前
2025年必备的Docker命令指南与实战示例
docker·容器·eureka
AtoposのCX3304 小时前
Docker运行hello-world镜像失败或超时
运维·docker