欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > Ubuntu >内容正文

Ubuntu

ubuntu/debian/centos/rhel使用镜像源一键安装gitlab-ce服务

发布时间:2025/5/22 Ubuntu 59 豆豆
生活随笔 收集整理的这篇文章主要介绍了 ubuntu/debian/centos/rhel使用镜像源一键安装gitlab-ce服务 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

国内镜像源:浙大开源站http://mirrors.lifetoy.org/gitlab-ce/

       清华大学 TUNA 镜像源 https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/

 

一、ubuntu/debian

  1. 添加GitLab 的 GPG 公钥:

    curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null

  2.选择版本增加镜像源

      Debian7(Wheezy)

    echo "deb http://mirrors.lifetoy.org/gitlab-ce/debian wheezy main" | sudo tee -a /etc/apt/sources.list.d/gitlab-ce.list

   Debian8(Jessie)

    echo "deb http://mirrors.lifetoy.org/gitlab-ce/debian jessie main" | sudo tee -a /etc/apt/sources.list.d/gitlab-ce.list

    Ubuntu 14.04 LTS(trusty)

    echo "deb http://mirrors.lifetoy.org/gitlab-ce/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list.d/gitlab-ce.list

   Ubuntu 16.04 LTS(xenial)

    echo "deb http://mirrors.lifetoy.org/gitlab-ce/ubuntu xenial main" | sudo tee -a /etc/apt/sources.list.d/gitlab-ce.list

  3. 安装gitlab-ce

    sudo apt-get updatesudo apt-get install gitlab-ce  

二、centos/rhel  

  1. /etc/yum.repos.d/gitlab-ce.repo

  centos6/rhel6

[gitlab-ce] name=gitlab-ce baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6 repo_gpgcheck=0 gpgcheck=0 enabled=1 gpgkey=https://packages.gitlab.com/gpg.key

  centos7/rhel7

[gitlab-ce] name=gitlab-ce baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7 repo_gpgcheck=0 gpgcheck=0 enabled=1 gpgkey=https://packages.gitlab.com/gpg.key

  2.安装GitLab-CE:

  sudo yum makecachesudo yum install gitlab-ce

  

  

转载于:https://www.cnblogs.com/songqingbo/articles/5567617.html

《新程序员》:云原生和全面数字化实践50位技术专家共同创作,文字、视频、音频交互阅读

总结

以上是生活随笔为你收集整理的ubuntu/debian/centos/rhel使用镜像源一键安装gitlab-ce服务的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。