• GitHub上不去了,谁有魔法?
  • 发布于 1周前
  • 64 热度
    2 评论

想去GitHub下载个代码,结果现在打开GitHub网站直接直接显示无法访问此网站了,大家谁有魔法?

用户评论
  • 无名先生
  • 1.用记事本打开hosts文件,文件路径:C:\Windows\System32\drivers\etc

    2.把如下最新的host信息追加到hosts文件

    # GitHub Host Start
    
    185.199.109.154              github.githubassets.com
    140.82.113.22                central.github.com
    185.199.108.133              desktop.githubusercontent.com
    185.199.108.153              assets-cdn.github.com
    185.199.109.133              camo.githubusercontent.com
    185.199.109.133              github.map.fastly.net
    151.101.65.194               github.global.ssl.fastly.net
    140.82.113.3                 gist.github.com
    185.199.110.153              github.io
    140.82.113.4                 github.com
    140.82.112.5                 api.github.com
    185.199.109.133              raw.githubusercontent.com
    185.199.108.133              user-images.githubusercontent.com
    185.199.109.133              favicons.githubusercontent.com
    185.199.109.133              avatars5.githubusercontent.com
    185.199.111.133              avatars4.githubusercontent.com
    185.199.109.133              avatars3.githubusercontent.com
    185.199.108.133              avatars2.githubusercontent.com
    185.199.110.133              avatars1.githubusercontent.com
    185.199.108.133              avatars0.githubusercontent.com
    185.199.109.133              avatars.githubusercontent.com
    140.82.114.9                 codeload.github.com
    54.231.131.137               github-cloud.s3.amazonaws.com
    52.217.136.193               github-com.s3.amazonaws.com
    52.216.160.227               github-production-release-asset-2e65be.s3.amazonaws.com
    52.217.230.1                 github-production-user-asset-6210df.s3.amazonaws.com
    52.217.137.65                github-production-repository-file-5c1aeb.s3.amazonaws.com
    185.199.109.153              githubstatus.com
    140.82.112.17                github.community
    185.199.111.133              media.githubusercontent.com
    185.199.108.133              objects.githubusercontent.com
    185.199.108.133              raw.github.com
    20.221.80.166                copilot-proxy.githubusercontent.com
    
    # Please Star : https://github.com/ineo6/hosts
    # Mirror Repo : https://gitlab.com/ineo6/hosts
    
    # Update at: 2024-01-27 12:11:22
    # GitHub Host End
    3.保存hosts文件

    4.在命令行窗口输入命令刷新dns

    ipconfig/flushdns

    5.关闭浏览器后重新打开浏览器访问就OK了

  • 2024/1/27 12:28:00 [ 0 ] [ 0 ] 回复