- 官网地址
https://about.gitlab.com/
https://about.gitlab.com/installation/
2.下载并安装所需RPM包
https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
3.安装命令
sudo dnf install -y curl policycoreutils openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
# Check if opening the firewall is needed with: sudo systemctl status firewalld
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
sudo dnf install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ce
4.gitlab 服务操作
初始化配置 gitlab gitlab-ctl reconfigure
启动 gitlab 服务 gitlab-ctl start
停止 gitlab 服务 gitlab-ctl stop
5.浏览器访问,访问 Linux 服务器 IP 地址即可