TECHIES WORLD

For Techs.... Techniques.... Technologies....

Linux

How to install gitlab in centos server

GitLab is a web-based Git repository manager with wiki and issue tracking features, using an open source license, developed by GitLab Inc.

This article explains the steps to install and configure gitlab in Centos server.

Step1: Install and Configure the necessary dependencies

#yum install postfix
#service postfix start
#chkconfig postfix on

Step2: Install other dependencies

#yum -y groupinstall “Development Tools”
#yum install curl

Step3: Install GitLab package on Server

#curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | # bash
#yum install gitlab-ce

Step4: Change External URl

If we need to change the external url the use follow below steps:

#vi /etc/gitlab/gitlab.rb

external_url ‘http://domain.com’

Step5: Configure GitLab on Server

#gitlab-ctl reconfigure

Step6: Acces and login GitLab

You can browse GitLab from your browser using server IP or hostname.

http://ipaddress
or
http://hostname

Note: If you do any changes in configuration file than you need to run reconfigure command to make the changes.Use following command to reconfigure:

#gitlab-ctl reconfigure

Note: Important configuration files of gitlab are:

Main Configuration File: /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
GitLab Document Root: /opt/gitlab
Default Repository Location: /var/opt/gitlab/git-data/repositories
Default Nginx Configuration File: /opt/gitlab/embedded/conf/nginx.conf
GitLab Nginx Configuration file Location: /var/opt/gitlab/nginx/conf
Postgresql data Directory: /var/opt/gitlab/postgresql/data

 

Leave a Reply