• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install Gitlab-CE on RHEL7.6

  • 00:25 cat /etc/os-release
  • 00:37 yum install curl policycoreutils openssh-server openssh-clients
  • 01:09 systemctl enable sshd
  • 01:18 systemctl start sshd
  • 01:26 yum install postfix
  • 01:46 systemctl enable postfix
  • 02:06 firewall-cmd --permanent --add-service=https
  • 02:30 systemctl reload firewalld
  • 02:40 curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
  • 03:04 yum install gitlab-ce
  • 03:44 gitlab-ctl reconfigure
  • 04:25 gitlab-ctl start
6339

How to Install Gitlab-CE on RHEL7.6

Introduction:

GitLab is a web-based repository manager used for team collaboration. We can create, edit new projects and merge finished code into the existing projects with Gitlab. In this tutorial we are going to see the Method to install Gitlab-CE on RHEL7.6

Installation Process:

To check the installed version of OS

[root@linuxhelp ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"

Install the required dependencies packages

 [root@linuxhelp ~]# yum install curl policycoreutils openssh-server openssh-clients
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package curl-7.29.0-51.el7.x86_64 already installed and latest version
Package policycoreutils-2.5-29.el7.x86_64 already installed and latest version
Package openssh-server-7.4p1-16.el7.x86_64 already installed and latest version
Package openssh-clients-7.4p1-16.el7.x86_64 already installed and latest version
Nothing to do

After the installation enable and start the service

[root@linuxhelp ~]# systemctl enable sshd
[root@linuxhelp ~]# systemctl start sshd

Then install the postfix MTA for mailing service

[root@linuxhelp ~]# yum install postfix
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.10.1-7.el7 will be installed
….
…..
 Verifying  : 2:postfix-2.10.1-7.el7.x86_64                                                                         1/1
Installed:
 postfix.x86_64 2:2.10.1-7.el7                                                                                          
Complete!

Now use the below command to enable and start the service

[root@linuxhelp ~]# systemctl enable postfix
 [root@linuxhelp ~]# systemctl start postfix

Allow the following service in firewall

[root@linuxhelp ~]# firewall-cmd --permanent --add-service=https
success

reload the firewall service to update the changes

[root@linuxhelp ~]# systemctl reload firewalld

Run the below script to install gitlab repository in your system

 [root@linuxhelp ~]# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
Detected operating system as rhel/7.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=rhel&dist=7&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
gitlab_gitlab-ce-source/signature                                                                 |  862 B  00:00:00     
Retrieving key from https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
….
….
The repository is setup! You can now install packages.

Now you can install the gitlab-ce using the below command

 [root@linuxhelp ~]# yum install gitlab-ce
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package gitlab-ce.x86_64 0:13.3.5-ce.0.el7 will be installed
--> Finished Dependency Resolution
…..
  Installing : gitlab-ce-13.3.5-ce.0.el7.x86_64                                                                      1/1
It looks like GitLab has not been configured yet; skipping the upgrade script.

       *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.
  
    _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/
  

Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.

After the gitlab-ce installation run the below command to start the gitlab configuration

[root@linuxhelp ~]# gitlab-ctl reconfigure
Starting Chef Infra Client, version 15.12.22
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
 - postgresql (0.1.0)
 - redis (0.1.0)
 - monitoring (0.1.0)
 - package (0.1.0)
 - gitlab (0.0.1)
 - mattermost (0.1.0)
 - gitaly (0.1.0)
 - praefect (0.1.0)
…..
….
   - change mode from '' to '0700'
 * runit_service[grafana] action restart (up to date)
Running handlers:
Running handlers complete
Chef Infra Client finished, 564/1530 resources updated in 07 minutes 24 seconds
gitlab Reconfigured!

After reconfiguration start the gitlab

 [root@linuxhelp ~]# gitlab-ctl start
ok: run: alertmanager: (pid 23189) 21s
ok: run: gitaly: (pid 23159) 26s
ok: run: gitlab-exporter: (pid 23145) 27s
ok: run: gitlab-workhorse: (pid 23132) 28s
ok: run: grafana: (pid 23203) 20s
ok: run: logrotate: (pid 22474) 311s
ok: run: nginx: (pid 23355) 3s
ok: run: node-exporter: (pid 23140) 28s
ok: run: postgres-exporter: (pid 23195) 22s
ok: run: postgresql: (pid 22226) 418s
ok: run: prometheus: (pid 23165) 27s
ok: run: puma: (pid 22379) 347s
ok: run: redis: (pid 22062) 436s
ok: run: redis-exporter: (pid 23155) 27s
ok: run: sidekiq: (pid 22399) 336s

Go to Browser where provide IP address of your system 1

Configure administrator password in this console 2

Provide user login credentials in the login page 3

4

With this, the method to install Gitlab-CE on RHEL7.6 comes to end.

Tags:
grayson
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is Gitlab-CE?

A

GitLab is a web-based repository manager for teams collaboration. It is used to create, edit new projects and merge finished code into the existing projects.

Q

What is the RAM requirement for GITLAB server to install?

A

Minimum 4GB required for this Gitlab server.

Q

Does GitLab provide project templates?

A

There are no project templates in GitLab at the moment.

Q

Which command to access the gitlab-rails in terminal?

A

execute the following commands in the terminal to gain access for gitlab-rails console.
# gitlab-rails console production

Q

What is the advahntage of GitLab CE Ominbus?

A

The advahntage of GitLab CE Ominbus are
Secured codes.
Improved milestones.
Status availability.
Supports GUI.
Control over the repository.
Snippet supports.

Related Tutorials in How to Install Gitlab-CE on RHEL7.6

Related Tutorials in How to Install Gitlab-CE on RHEL7.6

How to add local folder to a GitLab project
How to add local folder to a GitLab project
Apr 20, 2017
How to reset gitlab admin password
How to reset gitlab admin password
Mar 30, 2017
How to Install and configure GitLab runner on centos 7
How to Install and configure GitLab runner on centos 7
Oct 22, 2021
How to enable repositories on RHEL7.6 without Red Hat-Subscription
How to enable repositories on RHEL7.6 without Red Hat-Subscription
Sep 5, 2020
How to change default backup location in GitLab
How to change default backup location in GitLab
Apr 17, 2017
How to check the lsb_release of your redhat based Linux distros
How to check the lsb_release of your redhat based Linux distros
Jun 8, 2018
How to Install Docker-CE on RHEL-7.6
How to Install Docker-CE on RHEL-7.6
Sep 11, 2020
Steps to do after minimal installation of RHEL/CentOS
Steps to do after minimal installation of RHEL/CentOS
May 5, 2016

Related Forums in How to Install Gitlab-CE on RHEL7.6

Related Forums in How to Install Gitlab-CE on RHEL7.6

redhat
ethan class=
How to fix "container-selinux >= 2:2.74" issue while Installing Docker-CE on RHEL7.6
Aug 25, 2020
gitlab
baseer class=
How to check gitlab version
Oct 24, 2017
Git
vertonskjelvic class=
error: failed to push some refs to in gitlab
Nov 24, 2017
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
gitlab
brayden class=
GitLab: The project you were looking for could not be found
May 23, 2017
gitlab
ceriaimmaculate class=
Gitlab : how to rename branch name
Oct 26, 2017
gitlab
otwol class=
502 Error Whoops Gitlab is Taking too much of time to respond
Jul 29, 2019
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019

Related News in How to Install Gitlab-CE on RHEL7.6

Related News in How to Install Gitlab-CE on RHEL7.6

Gitlab assures its users of data recovery post data loss incident
Gitlab assures its users of data recovery post data loss incident
Feb 4, 2017
Red Hat Enterprise Linux 6.9 Hits Beta
Red Hat Enterprise Linux 6.9 Hits Beta
Jan 6, 2017
Red Hat initiates new pilot program to ease into Digital Transformation
Red Hat initiates new pilot program to ease into Digital Transformation
Mar 30, 2017
Red Hat Preconized Red Hat Openstack Platform 11
Red Hat Preconized Red Hat Openstack Platform 11
May 10, 2017
Red Hat Enterprise Linux 7.7 beta rolled out
Red Hat Enterprise Linux 7.7 beta rolled out
Jun 7, 2019
IBM TO ACQUIRE RED HAT
IBM TO ACQUIRE RED HAT
Nov 15, 2018
Oracle Vulnerability Exploited in the Wild
Oracle Vulnerability Exploited in the Wild
Jun 25, 2019
Red Hat propels Linux towards the “Four Footprints of Technology”
Red Hat propels Linux towards the “Four Footprints of Technology”
Aug 4, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luke ?
workbench for debian

I am using workbench in CentOS whereas now I need to use Debian Operating system so could you please help to install and use in Debian?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.