Neurohazard
暮雲煙月,皓首窮經;森羅萬象,如是我聞。

【Linux】怎么解决从 github下载资源慢

wpadmin~September 2, 2019 /System Management

Contents

怎么解决从 github下载资源慢

参考方案

修改 hosts

1 查询正确的 DNS 解析 https://www.ipaddress.com/
2 修改 /etc/hosts

192.30.253.113  github.com
151.101.185.194 github.global.ssl.fastly.net
192.30.253.120  codeload.github.com

3 重启网卡

sudo /etc/init.d/networking restart 

vps 中转

1 vps git clone
2 python -m SimpleHTTPServer
3 Linux 主机下载

./darkhttpd /path/to/wwwroot --port 8080
wget -r -np -R "index.html*" http://example.com/configs/.vim/

参考资料

怎么解决从github下载资源慢? – ailx10(唐图)的回答 – 知乎
https://www.zhihu.com/question/276143842/answer/732220179

Leave a Reply

Your email address will not be published. Required fields are marked *