1.安装gitlab准备包
sudo yum install -y curl policycoreutils openssh-server openssh-clients libsemange-static libsemange-devel
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install -y postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
2.下载GitLab安装包,并安装
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install -y gitlab-ce
3.配置并启动gitlab
sudo gitlab-ctl reconfigure