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.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.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
- 下一篇: Spring之IoC总结帖