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

CentOS 7.6 build Gitlab tutorial

2025-03-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Brief introduction

GitLab uses Ruby on Rails, an open source version management system, to implement a Git project repository for storing code, which can be accessed through the Web interface for public or private projects. It has features similar to Github, the ability to browse source code, manage defects and comments. You can manage the team's access to the warehouse, which is very easy to browse the submitted version and provides a file history library. Team members can communicate using the built-in simple chat program (Wall). It also provides a code snippet collection feature that makes it easy to reuse code and make it easier to find it later when you need it.

The differences between GitLab and GitHub are the same:

Both are web-based Git repositories, and GitLab is basically the same way as GitHub, providing a centralized cloud storage place for storage, sharing, publishing and collaborative development projects.

Differences:

GitHUb provides both public and private repositories, but there is a charge if you need to use private repositories. GitLab gives the development team more control over their code repositories and has a number of features compared to GitHub:

Allow users to set warehouse permissions free of charge; allow users to choose to share part of the code of a project; allow users to set access permissions for project to further improve security; you can set to obtain the overall improvement progress of the team; through innersourcing, people who are not within the scope of authority can not access the resource.

In terms of code privacy, sometimes companies don't want their employees to get all the code, so GitLab is a better choice. But for open source projects, GitHub is still the first choice for code storage.

Building process 1. Add yum Feed

Vim / 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

two。 Download gitlab

Yum install gitlab-ce-y

3. Modify the default port number

Vim / etc/gitlab/gitlab.rb

4. Reconfigure gitlab

Gitlab-ctl reconfigure

5. Start the service

Gitlab-ctl start

6. Web page login

Refer to the official website installation address: https://about.gitlab.com/install/#centos-7

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