• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News 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
{{postValue.id}}

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
{{postCtrl.cmtErrMsg}}

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.

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 Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

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.