飞哥的海

导航

github访问太慢,可以用hosts做dns映射

0. 明朝开始海禁,百年后.

1. 通过https://www.ipaddress.com/ 获取 github.com 和 github.global.ssl.fastly.net 的ip地址。

 

 

 

2.用vscode 打开 C:\windows\system32\drivers\etc\hosts 将上述ip填入 host文件

 

 3. 之所以使用.vscode,因为 这货能自动转为 超管模式保存

 

4. 然后运行 ipconfig /flushdns  

5. 上述操作后,也有一定访问失败几率. 

 

posted on 2023-01-26 21:47  飞哥的海  阅读(227)  评论(0)    收藏  举报