github clone速度太慢问题

参考链接:https://blog.csdn.net/tsq292978891/article/details/78260066

通过修改hosts文件,解决Github网站访问速度慢,clone时间过长的问题。

需要修改的hosts地址为:github.com 和 github.global.ssl.fastly.net,其中查看网站对应IP地址的方法是访问网址:https://www.ipaddress.com/。当前时段查询出的对应IP为

192.30.253.112  github.com 
151.101.185.194  github.global.ssl.fastly.net

linux系统

1.修改系统的hosts文件

sudo gedit /etc/hosts

2.在文件末尾添加,保存

192.30.253.112  github.com 
151.101.185.194  github.global.ssl.fastly.net

3.刷新DNS缓存

sudo /etc/init.d/networking restart

4.关闭浏览器,重新访问

 

posted on 2018-08-10 18:38  TingHL  阅读(115)  评论(0编辑  收藏  举报

导航