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