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