PIP镜像配置

1
2
3
4
5
6
7
# 配置阿里云源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com

# 配置华为云源
pip config set global.index-url https://mirrors.huaweicloud.com/repository/pypi/simple
pip config set install.trusted-host mirrors.huaweicloud.com

NPM镜像配置

1
2
# 配置淘宝镜像
npm config set registry https://registry.npmmirror.com/

Git代理配置

1
2
3
4
5
6
7
# 全局配置 http 代理
git config --global http.proxy 'http://proxy_ip:port'
git config --global https.proxy 'http://proxy_ip:port'

# 全局配置 socket5 代理
git config --global http.proxy 'socks5://proxy_ip:port'
git config --global https.proxy 'socks5://proxy_ip:port'

Docker镜像配置

1
2
nano /etc/docker/daemon.json
# 具体可用的镜像列表参考大佬整理的:https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"registry-mirrors": [
"https://nho6ell2.mirror.aliyuncs.com",
"https://docker.1panel.live",
"https://hub.rat.dev",
"https://docker.actima.top",
"https://atomhub.openatom.cn",
"https://docker.m.daocloud.io",
"https://docker.nastool.de",
"https://dockerpull.org",
"https://registry.dockermirror.com",
"https://docker.m.daocloud.io",
"https://docker.1ms.run",
"https://docker.aityp.com",
"https://dockerhub.xisoul.cn",
"https://docker.imgdb.de",
"https://hub.littlediary.cn",
"https://docker.unsee.tech",
"https://hub.crdz.gq",
"https://hub.firefly.store",
"https://docker.kejilion.pro",
"https://dhub.kubesre.xyz",
"https://hub.xdark.top",
"https://docker.udayun.com"
]
}
1
2
systemctl daemon-reload
systemctl restart docker