美文网首页
GitHub访问加速

GitHub访问加速

作者: 求心丶 | 来源:发表于2021-03-16 16:54 被阅读0次

国内访问githup速度感人,这里采用修改hosts文件进行加速。

一、获取 github 的 global.ssl.fastly 地址

访问:http://github.global.ssl.fastly.net.ipaddress.com/#ipinfo 获取cdn和ip域名

获取cdn和ip.png
得到:199.232.69.194 https://github.global.ssl.fastly.net

二、获取githup.com地址

访问:https://github.com.ipaddress.com/#ipinfo 获取cdn和ip

githup.com的cdn和ip.png
得到:140.82.114.4 http://github.com

三、修改hosts文件映射到查找到的ip

  • 为hosts文件增加写入权限
    windows系统进入C:\Windows\System32\drivers\etc
    修改hosts文件的权限


    hosts文件增加写入权限.png
  • hosts文件中追加映射关系

199.232.69.194 github.global.ssl.fastly.net
140.82.114.4 github.com

按照上述步骤操作后,可以正常访问githup。注意:在自己的电脑上需要按照上述过程操作一遍后得到ip与域名再追加到hosts中,直接复制我这里的不一定会有用

相关文章

网友评论

      本文标题:GitHub访问加速

      本文链接:https://www.haomeiwen.com/subject/oymdcltx.html