一、背景
二、步驟
1.安裝依賴
yum install -y curl policycoreutils-python openssh-server
2.防火牆設置
firewall-cmd --permanent --add-service=http
systemctl reload firewalld
##測試環境推薦關閉防火牆 避免不必要麻煩
3.安裝postfix實現郵件發送
yum install postfix -y
systemctl enable postfix && systemctl start postfix
4.配置GitLab的倉庫地址並下載安裝包
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
5.安裝gitlab
yum install -y gitlab-ee
##自動配置gitlab
gitlab-ctl reconfigure