Home > Article > Development Tools > How to install gitlab on linux? Tutorial sharing
Gitlab is a tool for project management and collaboration and is widely used in software development and team collaboration. This article explains how to install Gitlab on Linux.
Before installing Gitlab, you need to install the following dependency packages:
You can install dependencies on Ubuntu/Debian through the following commands:
sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates postfix
Install dependencies on CentOS/RHEL:
sudo yum install -y curl policycoreutils-python openssh-server postfix sudo systemctl enable postfix sudo systemctl start postfix
Use curl to download the Gitlab installation package:
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
Or use the following command on CentOS/RHEL:
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
Then install Gitlab:
sudo apt-get install gitlab-ce
Or execute the following command on CentOS/RHEL:
sudo yum install -y gitlab-ce
After the installation is complete, you need to configure Gitlab so that it can run. Run the following command:
sudo gitlab-ctl reconfigure
This command will automatically configure Gitlab and start the required services.
After the installation is complete, you can access Gitlab in a web browser. Access your server's IP address or domain name through a browser and set the path to /users/sign_in.
For example, http://your-server-ip/users/sign_in or http://your-domain.com/users/sign_in.
After logging in to Gitlab using the default administrator username and password (root/5iveL!fe), you can change the password and other settings as needed.
Now your Gitlab installation is complete! You can start a new project, add team members, push and pull code, and more.
Summary
In this article, we learned how to install and configure Gitlab for software development and team collaboration. Now you can install and use Gitlab on your Linux right away.
The above is the detailed content of How to install gitlab on linux? Tutorial sharing. For more information, please follow other related articles on the PHP Chinese website!