使用Cenos7搭建自己的GitLab服务

  1. 关闭防火墙
# 暂时关闭防火墙
systemctl stop firewalld
#永久关闭防火墙
systemctl disable firewalld
  1. 安装Postfix来实现邮件通知的功能
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
  1. 配置GitLab的仓库地址
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

可能由于网络原因经常不能成功下载安装包,所以我们要配置一下yum源,这样我们就能下载成功了
4. 在 /etc/yum.repos.d 下创建文件gitlab-ce.repo

# 创建文件
touch gitlab-ce.repo
# 写文件内容
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
  1. 重新生成一下缓存
yum makecache
  1. 安装GitLab
yum install -y gitlab-ce
  1. 初始化GitLab
sudo gitlab-ctl reconfigure

就此,我们的GitLab搭建,接下来我们可以通过在浏览器的地址栏中输入虚拟机的ip地址即可,第一次进入这个页面让我们设置密码。然后就可以登录了。
账户:root
密码:就是我们刚自己设置的密码

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值