每日来看BB姬beebeej.com
上班摸鱼吹水好快活

如何加速国内Github访问(渡人上岸速来报道)

其他主题:
      1、高速机场支持4K支持Netflix耐飞1080P秒开推荐:https://pud.life/aff/rDoZ
      2、最全翻墙工具客户端整理(赠一码)http://t66y.com/htm_data/2004/7/3881049.html文中工具若需要购买正版而无外币卡,可私信楼主帮助支付
      3、如何分别使用圈和圈X解锁TikTok(支持新版)区域限制http://t66y.com/htm_data/2003/7/3857870.html
      4、如何更改圈X策略组图标http://t66y.com/htm_data/2003/7/3863006.html
      5、各版本科学上网工具汇总http://t66y.com/htm_data/2004/7/3871225.html
      6、小火箭账号分享jjfxt1024taiwan@163.com密码Gongzhonghao:jjfxt1024

       感谢D版给上一篇主题加V,终于摆脱1024限制,为表感谢,再发码一枚为社区添砖加瓦!请游客朋友按照要求注册,用户名不要有特殊符号,不要涉及个人社交账号,广告等信息,不想因此违规~另外,注册后请来本贴报道,并私信我告知!邀请码:ee(4+3=?)47c4(二的三次方等于?)715a(第五个小写英文字母)624
       本方法来源于网络,非楼主自创!
       由于某些原因,国内访问Github会异常缓慢,在clone仓库时甚至只有10k以下的速度,下载半天有时还会失败需要从头再来,甚是让人恼火。本文介绍通过修改系统hosts文件的办法,绕过国内dns解析,直接访问GitHub的CDN节点,从而达到加速的目的。不需要科学上网,也不需要海外的服务器辅助。
       1 获取GitHub官方CDN地址:打开https://www.ipaddress.com/查询以下三个链接的DNS解析地址
       github.com
       assets-cdn.github.com
       github.global.ssl.fastly.net
       如下图
 

       记录下查询到的IP地址。
       2 修改系统Hosts文件,打开系统hosts文件(需管理员权限),路径:C:\Windows\System32\drivers\etc在末尾添加三行记录并保存。(需管理员权限,注意IP地址与域名间需留有空格)
       # Copyright (c) 1993-2009 Microsoft Corp.
       #
       # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
       #
       # This file contains the mappings of IP addresses to host names. Each
       # entry should be kept on an individual line. The IP address should
       # be placed in the first column followed by the corresponding host name.
       # The IP address and the host name should be separated by at least one
       # space.
       #
       # Additionally, comments (such as these) may be inserted on individual
       # lines or following the machine name denoted by a '#' symbol.
       #
       # For example:
       #
       #      102.54.94.97     rhino.acme.com          # source server
       #       38.25.63.10     x.acme.com              # x client host

       # localhost name resolution is handled within DNS itself.
       #   127.0.0.1       localhost
       #   ::1             localhost

         192.30.253.112     github.com

         151.101.72.133    assets-cdn.github.com

         151.101.193.194    github.global.ssl.fastly.net
       3 刷新系统DNS缓存:Windows+X 打开系统命令行(管理员身份)或powershell运行 ipconfig /flushdns 手动刷新系统DNS缓存。
 
       现在打开Github,clone一个项目到本地试试。

抢到邀请码的朋友请速来报道!

[ 此貼被像我一样优秀在2020-04-18 06:54重新編輯 ]

赞(0) 打赏
未经允许不得转载:BB姬 » 如何加速国内Github访问(渡人上岸速来报道)
分享到: 更多 (0)

相关推荐

  • 暂无文章

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

BB姬

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏