安装篇:CentOS7 安装GitLab

本文详细介绍了如何在CentOS 7上安装GitLab,包括安装依赖、Postfix、GitLab本身,以及配置端口和存储路径。在安装过程中可能会遇到502错误、400错误等问题,文中提供了相应的解决方案,如检查端口占用、调整GitLab配置、启用swap分区等。
摘要由CSDN通过智能技术生成

CentOS 7 安装GitLab

1.安装所需依赖

yum install -y curl policycoreutils-python openssh-server postfix

2.安装Postfix(用来发送通知电子邮件)

yum install postfix
systemctl enable postfix
systemctl start postfix

3.下载gitLab

最新企业版:https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh

最新社区版: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.10.8-ce.0.el7.x86_64.rpm

4.安装GitLab

rpm -i gitlab-ce-11.10.8-ce.0.el7.x86_64.rpm 

5.修改GitLab端口号、存储仓库修改为自定义路径

vim /etc/gitlab/gitlab.rb

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值