Home > Article > Development Tools > What is the default username and password of gitlab?
This article will introduce the default username and password of GitLab.
GitLab is an open source code management platform, similar to GitHub, which provides powerful functions such as code management, issue tracking, and CI/CD. When you start GitLab for the first time, you will be prompted to set up an administrator account and password, but if you forget this password or try to log in for the first time, you will need to know the default username and password.
The default administrator username and password are:
Username: root
Password: 5iveL!fe
However, please note that due to security Consider that you should change this password as soon as possible after logging in for the first time. In order to better protect your GitLab account, it is recommended to use a complex password, including uppercase and lowercase letters, numbers, symbols and other characters.
If you encounter login problems, you can solve it by resetting the administrator password. On the GitLab server, use the following command to reset the password:
sudo gitlab-rails console
user = User.where(id: 1).first
user.password = 'new password'
user.password_confirmation = 'new password'
user.save!
or above The "new password" in the command refers to the new password you want to set, which can be changed as needed.
Summary
The default administrator username and password of GitLab are root and 5iveL!fe. For better security, it is recommended to change your password as soon as possible after logging in for the first time and use a complex password to protect your account. If you encounter login problems, you can solve it by resetting your administrator password.
The above is the detailed content of What is the default username and password of gitlab?. For more information, please follow other related articles on the PHP Chinese website!