【学习】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.浏览器访问

在这里插入图片描述

三、总结

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