ping github请求超时解决方案

打开网址 https://www.ipaddress.com/

输入 github.com 或者 github.global.ssl.fastly.net

将得到的ip地址放入到host文件中

用管理员权限(Win10)打开 C:WindowsSystem32driversetc 目录下的 host文件

在文件末尾加上

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

整体效果如下:

然后再win+r,输入ipconfig刷新即可。

原文地址:https://www.cnblogs.com/wanghao-boke/p/12596549.html