美文网首页
解决GitHub官网打不开问题

解决GitHub官网打不开问题

作者: 郑州古月歌丶 | 来源:发表于2021-03-16 14:07 被阅读0次

Github经常打不开,或者打开特别慢,网上也有很多解决方案,这里记录一下。
通过站长工具找出DNS地址,然后替换本机C:\Windows\System32\drivers\etc中的hosts文件内容

站长工具查询github ip地址

进入网址http://tool.chinaz.com/dns/,直接输入github.com,然后选择TTL值较大的ip,信号最稳定

图片.png

配置hosts文件

路径

C:\Windows\System32\drivers\etc中的hosts文件,添加通过站长工具查询的ip内容

#github
20.205.243.166  github.com
20.205.243.166  gist.github.com
20.205.243.166  assets-cdn.github.com
20.205.243.166  raw.githubusercontent.com
20.205.243.166  gist.githubusercontent.com
20.205.243.166  cloud.githubusercontent.com
20.205.243.166  camo.githubusercontent.com
20.205.243.166  avatars0.githubusercontent.com
20.205.243.166 avatars1.githubusercontent.com
20.205.243.166 avatars2.githubusercontent.com
20.205.243.166 avatars3.githubusercontent.com
20.205.243.166 avatars4.githubusercontent.com
20.205.243.166 avatars5.githubusercontent.com
20.205.243.166 avatars6.githubusercontent.com
20.205.243.166 avatars7.githubusercontent.com
20.205.243.166 avatars8.githubusercontent.com
74.86.142.55 github.global.ssl.fastly.net
128.121.243.235 github.global.ssl.fastly.net
74.86.142.55 github.global.ssl.fastly.net

刷新DNS缓存
打开cmd窗口,执行ipconfig /flushdns命令

相关文章

网友评论

      本文标题:解决GitHub官网打不开问题

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