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.3
和199.232.69.194
。
2.Windows系统打开以下目录:
C:\Windows\System32\drivers\etc
用记事本打开host文件,把以下内容添加进去:
image.png140.82.112.3 github.com
199.232.69.194 github.global.ssl.fastly.Net
保存、关闭。
3.打开cmd
用windows+R打开:
输入cmd,回车。
在小黑框里输入
ipconfig /flushdns
,更新DNS缓存。image.png
4.再次访问Github
快多啦!
网友评论