国内使用云服务器不用加速真的是寸步难行,还要云服务商自己有一些加速服务,还能用,不然真不知道怎么安装乱七八糟的配置了
直接使用他们提供的应用模板也是有很多坑的,使用的操作系统基本都是centos, 导致有些glibc库什么的非常落后,要是升级更是蛋疼的一件事.
我用的腾讯云的服务器,就找了腾讯 阿里和清华的源
腾讯源: https://mirrors.cloud.tencent.com/
阿里源: https://developer.aliyun.com/mirror/
清华源: https://mirror.tuna.tsinghua.edu.cn/
安装方法,以ubuntu源为例:
腾讯源: https://mirrors.cloud.tencent.com/help/ubuntu.html
阿里源: https://developer.aliyun.com/mirror/ubuntu
清华源: https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
虽然他们的源是更新的,但是文档有时候是过期的,这个需要注意,每个版本都有一个自己的名字
docker因为特殊原因不提供库,直接从官网安装也有问题,清华可以解决这个问题:
https://mirror.tuna.tsinghua.edu.cn/help/docker-ce/
export DOWNLOAD_URL="https://mirrors.tuna.tsinghua.edu.cn/docker-ce"
# 如您使用 curl
curl -fsSL https://get.docker.com/ | sh
#安装docker-compose还得再装一下
apt-get update
apt-get install docker-compose-plugin docker-compose
腾讯云还有自己的docker加速服务,很舒服
/etc/docker/daemon.json文件输入
{
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com"
]
}
github加速需要使用fastgit, 文档在 https://doc.fastgit.org/