Home > Development Tools > git > body text

How to install GitLab via yum on CentOS system

PHPz
Release: 2023-03-31 13:41:03
Original
997 people have browsed it

GitLab is an open source Web Git warehouse management tool. It not only provides Git-based version control, but also includes many functions such as code review, continuous integration and deployment, wiki, and issue tracking.

This article will introduce how to install GitLab through yum on CentOS system and simply configure it.

1. Install dependencies

Before installing GitLab, you need to install the following dependency packages:

sudo yum install -y curl policycoreutils openssh-server openssh-clients

sudo systemctl enable sshd

sudo systemctl start sshd

sudo firewall-cmd --permanent --add-service=http

sudo systemctl reload firewalld

2. Install GitLab

1. Download GitLab source

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

2. Install GitLab

sudo yum install -y gitlab-ce

3. Configure GitLab

1. Modify the GitLab configuration file

sudo vi /etc/gitlab/gitlab.rb

2. Modify the GitLab domain name

external_url 'http://your domain name or IP'

3. Save changes

:wq

4.Reconfigure GitLab

sudo gitlab-ctl reconfigure

5.Access GitLab

Enter GitLab's domain name or IP address in the browser address bar to enter the GitLab page.

4. Using GitLab

1. Create a user

Click the "Sign In / Register" button in the upper right corner of the GitLab page to enter the registration page and enter your username and password and email address, click the "Register" button to complete user registration.

2. Create a warehouse

After logging in to GitLab, click the "New Project" button in the navigation bar at the top of the page, fill in the warehouse name and description, select visibility, and click the "Create Project" button The warehouse is created.

3. Clone the warehouse

In the GitLab warehouse page, click the "Clone" button in the upper right corner of the warehouse, copy the SSH or HTTPS address of the warehouse, and use the git clone command to clone the warehouse locally.

To sum up, installing GitLab through yum is a relatively simple matter. If you want to learn more about more functions of GitLab, you can view more documents on the official website.

The above is the detailed content of How to install GitLab via yum on CentOS system. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!