解决Github访问慢的方法

2020-05-14  本文已影响0人  李白开水
1.使用浏览器访问https://www.ipaddress.com/

在这个位置分别输入github.com和github.global.ssl.fastly.net


image.png
image.png

搜索一下~
找到github.com对应的ip:


image.png

找到github.global.ssl.fastly.net对应的ip:


image.png

每台电脑获取的ip应该不一样。
我获取的是140.82.112.3199.232.69.194

2.Windows系统打开以下目录:

C:\Windows\System32\drivers\etc
用记事本打开host文件,把以下内容添加进去:

140.82.112.3 github.com
199.232.69.194 github.global.ssl.fastly.Net

image.png

保存、关闭。

3.打开cmd

用windows+R打开:

image.png
输入cmd,回车。
在小黑框里输入ipconfig /flushdns,更新DNS缓存。
image.png
4.再次访问Github

快多啦!

上一篇 下一篇

猜你喜欢

热点阅读