How to Install Gitlab on Centos Server: 5 Steps - MakeSureHow
Edit Article

  • 1 Editor

In this tutorial we will show you how to install and configuration of Gitlab on your CentOS server. For those of you who didn’t know, Gitlab is graphical implementation of git, it is an open source repository management and version control system. GitLab is developed on Ruby on Rails. Using GitLab you can host your source code on your own server.


  1. 1
    First let’s start by ensuring your system is up-to-date.
    • yum clean all
    • yum -y update
  2. 2
    Install and Configure the necessary dependencies.Before we going to install Git-lab, we have to install some prerequisites like ssh and mail services:yum install postfix openssh-serverNow enable and start the ssh and post-fix services as follows:
    • systemctl enable sshd postfix
    • systemctl start sshd postfix
  3. 3
    Installing GitLab.Use following command to install GitLab packages on server:
  4. 4
    Configure GitLab on Server.Now start the configuration by using the gitlab-ctl command:gitlab-ctl reconfigure
  5. 5
    Accessing Gitlab. Gitlab will be available on HTTP port 80 by default. Open your favorite browser and navigate to "" or "http://server-ip" and then login with a “root” user and with initial password “5iveL!fe”. If you are using a firewall, please open port 80 to enable access to the control panel.


  • If you are not comfortable installing the repository through a piped script, you can find the entire script here.

Article Tools

Did this article help you?


an Author!

Write an Article