yum 安装 gitlab 及 gitlab-runner安装

CentOS7下yum安装GitLab-CE
前提准备

  1. 建立git用户(如果是测试,可直接用root安装)
    useradd git
    passwd git
  2. 关闭防火墙
    systemctl stop firewalld
    systemctl disabled firewalld
  3. 安装依赖库
    yum install curl openssh-server postfix cronie
    service postfix start
    chkconfig postfix on
  4. 配置yum源进行安装
    注意: gitlab-ce 镜像仅支持 x86-64 架构
    centos中可以直接通过配置yum源然后使用yum进行一键安装
    国内可以使用的清华大学的镜像源安装GitLab,相关配置及安装参照:https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/
    以下内容写入yum源配置文件:/etc/yum.repos.d/gitlab-ce.repo
vim /etc/yum.repos.d/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

yum makecache
yum install gitlab-ce #自动安装最新版
yum install gitlab-ce-x.x.x    #可安装指定版本

安装成功后的提示:

Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting external_url
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by runni

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值