安装依赖
yum install -y curl policycoreutils-python-utils openssh-server
启用ssh
systemctl enable sshd
systemctl start sshd
添加http服务到firewalld
systemctl start firewalld firewall-cmd --permanent --add-service=http systemctl reload firewalld
开启 postfix
systemctl enable postfix
systemctl start postfix
下载安装包
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/gitlab-ce-13.9.1-ce.0.el8.x86_64.rpm
安装
rpm -i gitlab-ce-13.9.1-ce.0.el8.x86_64.rpm
修改IP和端口
vim /etc/gitlab/gitlab.rb
让配置生效并重启
gitlab-ctl reconfigure
gitlab-ctl restart
参考:https://www.cnblogs.com/stronger-xsw/p/12802069.html