Making Gitlab-Server on CentOS 7

GitLab, the software, is a web-based Git repository manager with wiki and issue tracking features. GitLab, the company, offers hosted accounts similar to GitHub, but also allows its software to be used on third-party servers. It is available as an Omnibus package.(Compared to an installation from source, this is faster and less error prone)

Install a Gitlab CE Omnibus package on CentOS 7. Use the following steps:-

1. Install and configure the necessary dependencies.

[nepalisupport@blog~]# yum install curl policycoreutils openssh-server openssh-clients

[nepalisupport@blog~]# systemctl enable sshd

[nepalisupport@blog~]# systemctl start sshd

[nepalisupport@blog~]# yum install postfix

[nepalisupport@blog~]# systemctl enable postfix

[nepalisupport@blog~]# systemctl start postfix

[nepalisupport@blog~]# firewall-cmd --permanent --add-service=http

[nepalisupport@blog~]# systemctl reload firewalld

2. Add the Gitlab package server and install packages,

[nepalisupport@blog~]# curl -sS /sudo bash

[nepalisupport@blog~]# yum install gitlab-ce

3. Configure and start Gitlab

[nepalisupport@blog~]# gitlab-ctl reconfigure

4. Now, Browse to the hostname & login,

Eg: on your browser;

user: root || password: g!tl@b              (you can assign your own password)

You can access a new installation with the login root and password 5iveL!fe, after login you are required to set a unique password.

That’s it. You have sucessfully configure gitlab-ce on your CentOS 7 machine.


Other useful commands,

[nepalisupport@blog~]# gitlab-ctl start

[nepalisupport@blog~]# gitlab-ctl stop

[nepalisupport@blog~]# gitlab-ctl restart



If you encounter “502 error” on your web page, then enter following commands,

[nepalisupport@blog~]# gitlab restart sidekig

[nepalisupport@blog~]# gitlab-ctl hup unicorn

[nepalisupport@blog~]# gitlab-rake gitlab:check


This tutorial is created based on other technical blog and is fully tested on Centos 7. Feel free to comment, Thank You.

For more reading materials please click here

Making Gitlab-Server on CentOS 7

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s