在我第一次安装gitlab的时候发现登录页面是
正常的页面应该是
这种情况的主要原因是不是第一次登录,所以我们要找到原先的密码
解决方式:
[root@gitlab ~]# vim /etc/gitlab/initial_root_password
# 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 密码:就是上文需要复制的地方。