1. 下载GitLab
下载地址:gitlab/gitlab-ce - Packages · packages.gitlab.com
选择el的最新的发行版
2. 安装GitLab
2.1 将下载的GitLab上传到CentOS服务器中
2.2 编写GitLab安装脚本
vim gitlab-install.sh 将如下代码写入gitlab-install.sh脚本中
sudo dnf install -y curl policycoreutils openssh-server perl 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 sudo d