【學習】centos7搭建gitlab

一、背景

二、步驟

1.安裝依賴
yum install -y curl policycoreutils-python openssh-server
2.防火牆設置
firewall-cmd --permanent --add-service=http
systemctl reload firewalld

##測試環境推薦關閉防火牆 避免不必要麻煩
3.安裝postfix實現郵件發送
yum install postfix -y
systemctl enable postfix && systemctl start postfix
4.配置GitLab的倉庫地址並下載安裝包
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
5.安裝gitlab
yum install -y gitlab-ee

##自動配置gitlab
gitlab-ctl reconfigure
6.瀏覽器訪問

在這裏插入圖片描述

三、總結

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章