跳至内容

运维教程:Github的镜像站配置

文章目录

Github常会出现无法clone的情况,如果此时着急下载可以选择Github镜像站方式,算是Github无法访问时的临时解决办法:

https://github.com.cnpmjs.org
https://hub.fastgit.org

演示使用

# 该地址无法下载
wget https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64

# 更换镜像域名进行下载
wget https://github.com.cnpmjs.org/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64
wget https://hub.fastgit.org/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64