参考:
https://blog.csdn.net/zhang45362613/article/details/108625425
https://zhuanlan.zhihu.com/p/107691233
https://blog.csdn.net/weixin_45085810/article/details/108339662
方法一:修改DNS
(尝试了不起作用)
将 DNS 修改为 114.114.114.114即可访问。
操作:
进入网络和Internet设置 -> 更改适配器选项
修改后,刷新DNS缓存:
cmd运行
ipconfig /flushdns
方法二:修改hosts文件
(亲测可用)
进入 C:\Windows\System32\drivers\etc
在hosts文件末尾添加以下内容:
# GitHub Start
185.199.108.153 xxxx.github.io
# GitHub End
其中xxxx.github.io为个人博客地址,对应的ip可通过dns查询工具查询得到(http://tool.chinaz.com/dns)
可选择延时相对较小的ip
注:不能直接修改hosts文件,可以复制出来修改后再覆盖原文件