Home  >  Article  >  Development Tools  >  Detailed explanation of the installation tutorial of gitlab (centos system)

Detailed explanation of the installation tutorial of gitlab (centos system)

PHPz
PHPzOriginal
2023-04-03 11:53:451523browse

On a Linux server, GitLab is an essential tool that provides a platform for managed code, project management, and version control. With GitLab, you can easily deploy, store, and manage your code, as well as collaborate on development.

This article will show you how to install GitLabCE on CentOS.

Prerequisites:

  • CentOS server
  • root permission

Step 1: Install dependency packages

Before installing GitLabCE, you need to install the required dependencies and tools. The following is the installation process:

yum install curl policycoreutils openssh-server openssh-clients
systemctl enable sshd
systemctl start sshd
firewall-cmd --permanent --add-service=http
systemctl reload firewalld

Step 2: Install GitLab

First, add the rpm repository for GitLabCE. Run the following command:

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

Before installing GitLabCE, make sure your system is up to date. Enter the following command:

yum update

Next, run the following command to install GitLabCE:

sudo yum install gitlab-ce

After the installation is complete, run the command to start gitlab:

sudo gitlab-ctl reconfigure

Step 3: Access GitLab

After all settings are completed, you can now use your browser to access the GitLab website. The access URL is: http:///.

The first time you access GitLab, you will be asked to create a new administrator account and set a password.

After completing the above steps, GitLabCE is ready to use.

This article ends.

The above is the detailed content of Detailed explanation of the installation tutorial of gitlab (centos system). For more information, please follow other related articles on the PHP Chinese website!

Statement:
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