1.环境设置
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
2.安装邮件服务器
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
3.安装仓库
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
或
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
4.安装gitlab包
sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ee
或
sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ce
5.页面访问测试