yum -y install wget
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.7.1-ce.0.el7.x86_64.rpm
yum install -y policycoreutils-python
rpm -i gitlab-ce-13.7.1-ce.0.el7.x86_64.rpm
gitlab-ctl reconfigure
gitlab-ctl restart
sudo firewall-cmd —add-service=http —permanent
sudo systemctl reload firewalld
reboot
如有必要在gitlab-ctl reconfigure上一步执行以下操作
修改gitlab配置文件指定服务器ip和自定义端口
vi /etc/gitlab/gitlab.rb
添加exter_url ‘http://本机IP‘