Install and configure GitLab on CentOS

Source: Internet
Author: User
Tags key string ruby on rails

Install and configure GitLab on CentOS

GitLab uses Ruby on Rails as an open-source version management system to implement a self-hosted Git project repository. It can access public or private projects through the Web interface. It has similar functions as Github, allowing you to browse source code, manage defects, and annotate.

Install

Follow the online Installation Guide.
Https://about.gitlab.com/downloads/#centos6

Logon Configuration

Access the server address directly, such as http: // 192.169.1.22/. A logon window is displayed. the username and password are as follows:

Username: root
Password: 5 iveL! Fe

Create a project

Click "+" on the navigation bar to go to the Project Creation page.
The namespace is used to determine the project to which the project belongs. You can select the User as the owner or the group. This will affect the project url, such as selecting the Team 1 to create project Test1, then project Test1 will be visible in this group team1, access path is https://domain.com/team1/Test1
Visibility Level indicates the permission Level, which can be divided into three types:
Private, accessible only by yourself or members in the group
Internal access by all login users
Public, accessible to all

Add SSLKey

The code transfer protocol between git repositories mainly uses the ssh protocol. Generally, git users who use gitlab do not have a password. Therefore, you cannot log on directly through 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 generates a pair of private keys and public keys, respectively ~ /. Ssh/id_rsa and ~ /. Ssh/id_rsa.pub. After the command is completed, you will be asked to save the address. Press enter by default. Run the second command to view the public key string and copy it manually.

On the Panel, choose Profile Settings> SSH Keys> Add SSH Keys. Copy the content in id_rsa.pub in the previous step and paste it into the input box. Save the content. Now you can upload the code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.