美文网首页
解决Github访问慢的方法

解决Github访问慢的方法

作者: 李白开水 | 来源:发表于2020-05-14 08:43 被阅读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

快多啦!

相关文章

网友评论

      本文标题:解决Github访问慢的方法

      本文链接:https://www.haomeiwen.com/subject/lijznhtx.html