Home > Development Tools > git > body text

What is the default username and password of gitlab?

PHPz
Release: 2023-04-10 13:52:09
Original
12720 people have browsed it

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:

  1. Use the root user to log in to the server
  2. Enter the GitLab installation directory, usually /opt/gitlab/
  3. Execute 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!

  1. Exit the console, restart the GitLab service, and the new password will take effect

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template