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 and configure GitLab in a CentOS system

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the relevant knowledge of "how to install and configure GitLab in the CentOS system". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Login configuration

Go directly to the server address, such as http://192.169.1.22/, and the login window will appear with the user name and password as follows:

User name: root

Password: 5iveL! Iron

New project

Click "" on the navigation bar to go to the create project page

Namespace is used to determine which project belongs to which project, and you can select user as your own or group. This will affect the web address of the project. For example, if you select team 1 to create the project Test1, the project Test1 will be visible in team 1 and the access path is https://domain.com/team1/Test1

The visibility level represents the permission level and can be divided into three types:

Private is private and can only be accessed by yourself or group members

Internal access for all logged-in users

The public is open, and everyone can enter.

Add SSLKey

The code transfer protocol between git libraries mainly uses the ssh protocol. Generally speaking, git users who use gitlab do not have a password and cannot log in directly to ssh. They need to upload the public key using ssh-keygen and use asymmetric encryption for transmission.

Ssh-keygen-t rsa-C "$your_email"

Cat ~ / Ssh/id_rsa.pub

The first command above generates a pair of private and public keys, stored in ~ /. Ssh/id_rsa and ~ /. The ssh/id_rsa.pub are respectively. When the command is complete, you will be asked to enter the save address, which can be entered directly by default. The second command looks at the public key string and copies it manually.

Click profile Settings on the panel; SSH key ndash add SSH key. Then copy and paste the contents of the previous step id_rsa.pub into the input box to save.

This is the end of "how to install and configure GitLab in a CentOS system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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

Internet Technology

Wechat

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

12
Report