1.下载gitlab包
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.1.2-ce.0.el7.x86_64.rpm
2.安装gitlab
rpm -ivh gitlab-ce-13.1.2-ce.0.el7.x86_64.rpm
3.修改配置
vim /etc/gitlab/gitlab.rb
#修改访问URL #格式:external_url 'http://ip:端口' external_url 'http://192.168.80.128:8081'
4. 重新加载配置
gitlab-ctl reconfigure
5.关闭防火墙
systemctl stop firewalld systemctl disable firewalld