yum install curl policycoreutils openssh-server openssh-clients -y # 确保sshd启动(正常状况下, sshd是启动的) systemctl enable sshd systemctl start sshd
firewall-cmd --permanent --add-service=http systemctl reload firewalld
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash yum install gitlab-ce -y # 配置并启动 gitlab-ctl reconfigure
若是当前服务器的80和8080端口均未被占用, 则直接能够经过服务器的ip或域名访问到后台git