centos7搭建gitlab本地服務器

  1. 安裝相關依賴
yum install curl policycoreutils openssh-server openssh-clients -y
# 確保sshd啓動(正常狀況下, sshd是啓動的)
systemctl enable sshd
systemctl start sshd
  1. 配置firewalld
firewall-cmd --permanent --add-service=http
systemctl reload firewalld
  1. 引入yum源, 並安裝gitlab
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

相關文章
相關標籤/搜索