Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install GitLab-CE in Centos8

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Introduction GitLab is a Git warehouse management program based on web interface, including code audit, wikis, problem tracking and other functions. Using GitLab to create, review, and deploy code is very easy. It can be hosted on our own server, and there is also a free warehouse hosting on the official server, similar to Github.

There are three different versions of GitLab available: Community Edition (CE), Enterprise Edition (EE), and GitLab managed version. The CE version is open source and free. The EE version is an enterprise version and needs to be paid for.

Environment Centos8gitlab-ce-13.1.4

It is recommended that the number of cpu cores is 4 cores and the recommended memory size is 4GB.

Install GitLab-CE

Create a new / etc/yum.repos.d/gitlab-ce.repo repository file, and then copy the contents to the file.

[root@localhost ~] # touch / etc/yum.repos.d/gitlab-ce.repo [gitlab-ce] name=Gitlab CE Repository baseurl= https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ gpgcheck=0 enabled=1

Update the yum cache and install gitlab-ce:

[root@localhost ~] # yum makecache [root@localhost ~] # yum-y install gitlab-ce

The installation is complete.

Open port in firewall [root@localhost ~] # firewall-cmd-- permanent-- add-service=httpsuccess [root@localhost ~] # firewall-cmd-- permanent-- add-service=httpssuccess [root@localhost ~] # firewall-cmd-- reloadsuccess configure and start gitlab

Just after installation, you need to configure gitlab.

[root@localhost ~] # gitlab-ctl reconfigure

After the configuration is complete, all services have been started, and boot has been set up.

Common operations of gitlab-ctl:

# reset application gitlab-ctl reconfigure# start all services gitlab-ctl start# close all services gitlab-ctl stop# restart all services gitlab-ctl restart# list all services gitlab-ctl service-list# view service status gitlab-ctl statusweb interface access GitLab

Enter the native ip address in the browser to access gitlab. For the first visit, you need to set a password for the administrator:

The default user is root. The password has just been set and you can log in:

Then you can create a project.

Summary

GitLab can integrate a large number of tools, such as Slack, Hipchat, LDAP, JIRA, Jenkins, many types of hooks and a complete API.

Original address of this article: https://www.linuxprobe.com/centos8-install-gitlab.html

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report