1. 更改hosts文件,地址:C:\Windows\System32\Drivers\etc 
    不能直接修改,将其拷贝到桌面,进行修改后,再复制到文件目录下(直接替换)
  2. 在hosts文件中添加:
# github
192.30.253.112 github.com 
 
151.101.113.194 github.global.ssl.fastly.net

前面的ip通过下面两个网址查出自己的 
http://github.com.ipaddress.com/ 
http://github.global.ssl.fastly.net.ipaddress.com/ 

github host

 

github host

 

3.如果上述步骤还不可以,可以刷新一下缓存:

打开cmd输入ipconfig /flushdns刷新缓存

 


 

原文:https://blog.csdn.net/dongxiaocong/article/details/81450839

参考:

https://www.cnblogs.com/bornfish/p/4401975.html

https://www.cnblogs.com/lossingdawn/p/9163141.html

 

相关文章:

  • 2021-10-25
  • 2021-12-16
  • 2021-12-09
  • 2022-12-23
  • 2021-11-19
  • 2021-11-29
猜你喜欢
  • 2021-06-23
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-12-19
相关资源
相似解决方案