github一会能打开一会打不开解决办法
2023-7-16 FANYUN 理论
https://zhuanlan.zhihu.com/p/489362379来源
1
https://link.zhihu.com/?target=https%3A//ip.tool.chinaz.com/github.com 获取ip地址
2
https://link.zhihu.com/?target=https%3A//fastly.net.ipaddress.com/github.global.ssl.fastly.net 获取域名ip
3
https://github.com.ipaddress.com/assets-cdn.github.com 获取静态资源ip
4修改host:
Ubuntu系统:
sudo vim /etc/hosts
Windows系统:
win+r
explorer.exe
C:\Windows\System32\drivers\etc\hosts
5底部加入以下代码 保存退出 重启浏览器
140.82.113.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
6Windows修改完映射文件,打开cmd输入
ipconfig/flushdns
刷新dns缓存
修改hosts文件
Ubuntu系统:sudo vim /etc/hosts
Windows系统:打开 C:\Windows\System32\drivers\etc 找到hosts文件
修改hosts文件
Ubuntu系统:sudo vim /etc/hosts
Windows系统:打开 C:\Windows\System32\drivers\etc 找到hosts文件
发表评论: