In this tutorial we will show you how to install and configuration of Gitlab on your CentOS server. For those of you who didn’t know, Gitlab is graphical implementation of git, it is an open source repository management and version control system. GitLab is developed on Ruby on Rails. Using GitLab you can host your source code on your own server.
1First let’s start by ensuring your system is up-to-date.
- yum clean all
- yum -y update
2Install and Configure the necessary dependencies.Before we going to install Git-lab, we have to install some prerequisites like ssh and mail services:yum install postfix openssh-serverNow enable and start the ssh and post-fix services as follows:
- systemctl enable sshd postfix
- systemctl start sshd postfix
3Installing GitLab.Use following command to install GitLab packages on server:
- curl -O https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh
- yum install gitlab-ce
4Configure GitLab on Server.Now start the configuration by using the gitlab-ctl command:gitlab-ctl reconfigure
5Accessing Gitlab. Gitlab will be available on HTTP port 80 by default. Open your favorite browser and navigate to "http://yourdomain.com/" or "http://server-ip" and then login with a “root” user and with initial password “5iveL!fe”. If you are using a firewall, please open port 80 to enable access to the control panel.
- If you are not comfortable installing the repository through a piped script, you can find the entire script here.