«

【Github】国内Github访问不了?这可能是你需要的方法

azurekiln 发布于 阅读:10



修改本机 Hosts

  1. 修改本机hosts文件

    • Windows hosts文件路径
      C:\Windows\System32\drivers\etc\hosts
    • Mac/Linux hosts文件路径
      /etc/hosts

      添加以下内容到hosts文件中:

      20.205.243.166 github.com
      20.200.245.247 github.com
      20.205.243.166 www.github.com
      20.200.245.247 www.github.com
      185.199.111.133 raw.githubusercontent.com
  2. 刷新DNS缓存

    • Windows
      ipconfig /flushdns


扫描二维码,在手机上阅读
收藏
请先 登录 再评论