Installation of Gitlab On Redhat/Cent0s 7

Configure gitlab on redhat 7

Installation of Gitlab On Redhat/Cent0s 7

Gitlab is a web based GUI repository Manager, issue tracking and CI/CD Pipelines features using Open Source with the help of GIT Version control system.

You may refer link for more info : Gitlab doc

Hardware Requirements :

  1. CPU – 2 core
  2. RAM – 4 GB

 Software Requirements :  should be installed on the machine

  1. Policycoreutils and curl
  2. Openssh Server and client both
  3. Mail Server (Postfix ) or any other SMTP

 Packages :

  1. postfix-2.10.1-6.el7.x86_64
  2. policycoreutils-python.x86_64

I’m assuming you have installed those packages on your machine. You also need to allow http  service in firewall if you want to access it from outside.

Step 1 :

Firewall-cmd -–permanent –add-port=80/tcp

Firewall-cmd –reload

And enable & start the services of Openssh , postfix

Commands are

Yum install  policycoreutils-python.x86_64 postfix-2.10.1-6.el7.x86_64 openssh-server –y

During Postfix installation a configuration window may appear. Select “internet site ” Use your server external DNS for “ mail name” and press enter. If screen still appears, continue and accept it.

Step 2 :

Add gitlab packages repository and install it

curl | sudo bash

Step 3 :

Now you have to install Gitlab Packages and change url to your at which you want to install Gitlab. Installation will be automatically start at the URL.

EXTERNAL_URL=”″ yum install -y gitlab-ee

Only one Packages

Step 4 :

If you want to change your URL then go to the location given below

vim /etc/gitlab/gitlab.rb

Then run below commands

Gitlab-ctl reconfigure

Step 5 : Go to the browser and type http://ip or http://hostname

You’re done.



Please enter your comment!
Please enter your name here