为github添加host

C:\WINDOWS\System32\drivers\etc

在host文件添加如下两行

    192.30.253.112 github.com
    151.101.113.194 github.global.SSL.fastly.net

 再次 ping github.com 解析后的ip就会强制指向host中的ip

github访问不到,登陆不上

 

注1:

  host文件修改需要权限,建议使用 nodepad++ ,保存后会自动要求管理员权限,再次保存即可

注2:

  关于IP的选择,可以去 站长工具 去查

参考:

  https://blog.csdn.net/wl_521/article/details/80154063

 

相关文章:

  • 2022-12-23
  • 2021-04-05
  • 2021-08-15
  • 2021-09-12
  • 2021-05-19
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2021-05-19
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
  • 2021-09-15
相关资源
相似解决方案