ubuntu/debian/centos/rhel使用镜像源一键安装gitlab-ce服务
生活随笔
收集整理的这篇文章主要介绍了
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/null2.选择版本增加镜像源
Debian7(Wheezy)
echo "deb http://mirrors.lifetoy.org/gitlab-ce/debian wheezy main" | sudo tee -a /etc/apt/sources.list.d/gitlab-ce.listDebian8(Jessie)
echo "deb http://mirrors.lifetoy.org/gitlab-ce/debian jessie main" | sudo tee -a /etc/apt/sources.list.d/gitlab-ce.listUbuntu 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.listUbuntu 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.list3. 安装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.keycentos7/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.key2.安装GitLab-CE:
sudo yum makecachesudo yum install gitlab-ce
转载于:https://www.cnblogs.com/songqingbo/articles/5567617.html
《新程序员》:云原生和全面数字化实践50位技术专家共同创作,文字、视频、音频交互阅读总结
以上是生活随笔为你收集整理的ubuntu/debian/centos/rhel使用镜像源一键安装gitlab-ce服务的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: IOS中获取各个文件的目录路径的方法和N
- 下一篇: Ubuntu下如何禁用IPv6