Introduce
Tell you how to install Gitlab CE(Community Edition) in CentOS 7.4 step by step.
Doc
https://about.gitlab.com/install/?version=ce#centos-7
Install
# Prerequisite
sudo yum install -y curl policycoreutils-python openssh-server openssh-clients perl
sudo systemctl enable sshd
sudo systemctl start sshd
# Firewall setting
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
# Install Gitlab ce repo
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
# Install Gitlab CE and set EXTERNAL_URL(your ip or host,http or https)
sudo EXTERNAL_URL="http://192.168.10.198" yum install -y gitlab-ce
Login
Go to http://192.168.10.198(your ip or host), set your root password when you first login