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.页面访问测试
本文详细介绍了在CentOS 7环境下部署GitLab的步骤,包括环境设置、邮件服务器安装、仓库配置及GitLab包安装过程,并提供了页面访问测试的方法。
1万+

被折叠的 条评论
为什么被折叠?



