常用镜像站合集

常用镜像站合集

前言

因受到 GFW 的影响,我们访问国外的镜像站容易下载慢且会被墙,所以就有大佬们搬运国外资源到国内设置镜像站供大家使用

Python-Pip包管理工具

1
2
3
4
5
6
7
8
# 清华源(比较好用,推荐)
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 阿里源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 腾讯源
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
# 换回默认源
pip config unset global.index-url

Node.js-npm-pnpm-cnpm包管理工具

1
2
3
4
# npm pnpm cnpm也只有前缀的区别,自行修改即可
npm config set registry https://registry.npmmirror.com
# 换回默认源
npm config delete registry

GitHub-Releases加速下载

1
2
3
# 两个都行
https://ghproxy.net/
https://github.akams.cn/

加速克隆/GitHub文件下载加速

网站:https://ghproxy.net/

1
2
3
4
# 暂时这些稳定,其他不知道了~
# 首推第一个链接,其次第二个
git clone --depth 1 https://githubfast.com/用户名/项目名.git
git clone --depth 1 https://ghproxy.net/https://github.com/用户名/项目名.git

克隆私库加速

1
2
3
4
# 源指令
git clone https://用户名:TOKEN@github.com/用户/项目名.git
# 加速指令
git clone https://用户名:TOKEN@ghproxy.net/https://github.com/用户/项目名.git

Docker-hub访问

使用cloudflare搭建,可以用于访问和加速克隆容器

1
https://docker.ruyuan.dpdns.org/