Home  >  Article  >  System Tutorial  >  Steps to install and set up GitLab on CentOS

Steps to install and set up GitLab on CentOS

WBOY
WBOYforward
2023-12-28 15:07:221082browse

GitLab is an open source version management system using Ruby on Rails to implement a self-hosted Git project warehouse that can access public or private projects through a web interface. It has similar functionality to Github, with the ability to browse source code and manage defects and comments.

Install

Just follow the online installation guide

https://www.php.cn/link/f8a85df7f5f429ca5f2ff9a695835da3

Login configuration

Directly access the server address, such as http://192.169.1.22/, a login window will appear, the user name and password are:

Username: root

Password: 5iveL!fe

New Project

Click " " on the navigation bar to enter the project creation page

The namespace is used to determine which project this project belongs to. You can select User as yourself, or select a group. This will affect the URL of the project. For example, if you select group team1 to create project Test1, then project Test1 will be visible in this group team1, and the access path is https://domain.com/team1/Test1

Visibility Level represents the permission level, which is divided into three types:

Private Private, only you or members of the group can access

Internal All logged in users access

Public Public, accessible to everyone

Add SSLKey

The code transfer protocol between git warehouses mainly uses the ssh protocol. Generally, the git user used when building gitlab does not have a password, so you cannot log in directly via ssh. You need to use ssh-keygen to upload the public key and use asymmetric encryption for transmission.

ssh-keygen -t rsa -C “$your_email”

cat ~/.ssh/id_rsa.pub

The first command above will generate a pair of private key and public key, which are stored in ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub respectively. After the command is completed, it will ask for the save address. Just press Enter by default. Can. The second command checks the public key string and copies it manually.

Click Profile Settings –> SSH Keys –> Add SSH Keys on the panel. Then copy and paste the contents of id_rsa.pub in the previous step into the input box and save it. Available now

The above is the detailed content of Steps to install and set up GitLab on CentOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete