解决github下载速度慢的问题

转载文章:https://zhuanlan.zhihu.com/p/93436925

一、修改本地hosts文件

windows系统的hosts文件的位置如下:C:\Windows\System32\drivers\etc\hosts

mac/linux系统的hosts文件的位置如下:/etc/hosts

二、增加http://github.global.ssl.fastly.net和http://github.com的映射

访问https://www.ipaddress.com,分别输入github.global.ssl.fastly.net和github.com

在这里插入图片描述
在这里插入图片描述
下面是我的配置
140.82.114.4 github.com
199.232.5.194 github.global.ssl.fastly.net

猜你喜欢

转载自blog.csdn.net/anqixiang/article/details/108646866