参考自知乎:https://zhuanlan.zhihu.com/p/107691233

基本步骤

  1. 查找域名对应IP

前面hosts里面域名里分为两类:

*.githubusercontent.com可以使用同一个IP,不需要每个单独查询。

*.github.com未经测试,目前看是需要单独查询对应的IP

52.192.72.89     github.com
66.249.89.104 github.com
8.7.198.45 gist.github.com
18.179.245.253 api.github.com
203.208.39.99 api.github.com
185.199.111.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.108.153 assets-cdn.github.com
185.199.111.153 raw.githubusercontent.com
185.199.110.153 raw.githubusercontent.com
185.199.109.153 raw.githubusercontent.com
185.199.108.153 raw.githubusercontent.com
185.199.111.153 gist.githubusercontent.com
185.199.110.153 gist.githubusercontent.com
185.199.109.153 gist.githubusercontent.com
185.199.108.153 gist.githubusercontent.com
185.199.111.153 cloud.githubusercontent.com
185.199.110.153 cloud.githubusercontent.com
185.199.109.153 cloud.githubusercontent.com
185.199.108.153 cloud.githubusercontent.com
185.199.111.153 camo.githubusercontent.com
185.199.110.153 camo.githubusercontent.com
185.199.109.153 camo.githubusercontent.com
185.199.108.153 camo.githubusercontent.com
185.199.110.153 avatars0.githubusercontent.com
185.199.110.153 avatars1.githubusercontent.com
185.199.110.153 avatars2.githubusercontent.com
185.199.110.153 avatars3.githubusercontent.com
185.199.110.153 avatars4.githubusercontent.com
185.199.110.153 avatars5.githubusercontent.com
185.199.110.153 avatars6.githubusercontent.com
185.199.110.153 avatars7.githubusercontent.com
185.199.110.153 avatars8.githubusercontent.com
185.199.110.153 user-images.githubusercontent.com
185.199.110.153 github.githubassets.com
  1. 修改Hosts文件

    Windows hosts文件位置:

    C:/windows/system32/drivers/etc/hosts

    或直接listary搜索
  2. 刷新本地DNS
ipconfig /flushdns

CDN加速

jsDelivr不支持exe文件下载

地址格式如下,version忽略则始终使用最新版本:

https://cdn.jsdelivr.net/gh/user/repo@version/file

举个例子:

# 原始url
https://github.com/ineo6/homebrew-install/blob/master/install.sh # 转换结果
https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh

Github访问加速(解决md图片显示问题)的更多相关文章

  1. 转: Github访问慢解决办法

    from: https://yq.aliyun.com/articles/36744 Github访问慢解决办法   zxiaofan 2016-04-20 17:25:00 浏览2156 评论0 摘 ...

  2. Github访问慢解决办法

    为什么慢?github的CDN被某墙屏了. 绕过dns解析,在本地直接绑定host.打开dns查询工具网站http://tool.chinaz.com/dns 查询域名github.global.ss ...

  3. github访问慢解决

    参考:https://github.com/chenxuhua/issues-blog/issues/3 hosts文件: # GitHub Start 192.30.253.112 github.c ...

  4. 微信小程序 之三元运算符代替wx:if 来解决背景图片显示隐藏

    最近在开发一个小程序项目时,碰到一个问题, 在一个多条件单项选择中,为选中条件添加一个选中状态,选中状态为灰色背景,但是这个背景要用到背景图片 大家都知道在小程序 中wxss是无法读到本地图标资源,只 ...

  5. mui 访问系统相册将图片显示到网页

    访问系统相返回值为一个对象,通过转换为字符串可以查看,path.files[0]为返回路径去除路径赋值到src 调用摄像头返回的相片的path为一个路径通过 plus.io.resolveLocalF ...

  6. github 访问加速

    http://nullpointer.pw/github%E4%BB%A3%E7%A0%81clone%E5%8A%A0%E9%80%9F.html hosts:https://raw.githubu ...

  7. 加速Github访问

    Github 仓库的数据传输很慢,甚至可能导致仓库拉取失败.例如: remote: Enumerating objects: , done. remote: Counting objects: % ( ...

  8. 推荐一个github国内访问加速神器GitHub520

    一.介绍 对 GitHub 说"爱"太难了:访问慢.图片加载不出来. 注: 本项目还处于测试阶段,仅在本机测试通过,如有问题欢迎提 issues 本项目无需安装任何程序,通过修改本 ...

  9. FE: CSS固定图片显示大小及GitHub Pages在线演示

    CSS固定图片显示大小 分析 假设图片区域的大小固定为250×300px,那么我们可以写出如下的样式 .picture-area { width: 250px; height: 300px; marg ...

随机推荐

  1. R包customLayout比例拼图

    一个简单的需求: 拼接两个图,一行两列,但不要一样大,让主图占的比例大些(如2/3),另一个图小一些(如1/3) 如上,我想突出曼哈顿图. R相关的拼图函数及包: 基础函数如par(mar =c(3, ...

  2. shell 脚本在linux中的应用

    shell脚本在linux中应用广泛,之前一直选用python写脚本来进行一些文件操作,但是最后发现shell脚本非常方便,所以特意来学习下皮毛,便于提高自己效率 定义变量 1 country=&qu ...

  3. MariaDB——显示所有数据库列表

    显示所有数据库列表:其中,information_schema.performance_schema.test.mysql,这4个库表是数据库系统自带的表,一般不放数据. 进入某个库 切换库,并显示库 ...

  4. mysql—mysql查询语句提示Unknown column ‘xxx’ in ‘where clause’

    运行结果中提示Unknown column 'xxx' in 'where clause'的问题.经过大神的指导,顿时明白其中缘由,如果sql中定义的类型是int型的可以不用加引号,但是如果是字符串类 ...

  5. A Child's History of England.42

    The names of these knights were Reginald Fitzurse, William Tracy, Hugh de Morville, and Richard Brit ...

  6. ubantu打开摄像头失败

    摘要-针对ubantu20 sudo apt install v4l-utils v4l2-ctl --list-devices - cv2 install on ubantu20```针对ubant ...

  7. oracle 预安装命令

     yum install oracle-rdbms-server-11gR2-preinstall-1.0-6.el6 

  8. Nested Classes in C++

    A nested class is a class which is declared in another enclosing class. A nested class is a member a ...

  9. How does “void *” differ in C and C++?

    C allows a void* pointer to be assigned to any pointer type without a cast, whereas C++ does not; th ...

  10. 访问网页全过程,用wireshark抓包分析

    用wireshark抓包查看访问网站过程 打开wireshark,打开一个无痕浏览器,输入网址,到网页呈现这一过程,网络数据包传递的消息都会被放在wireshark里.针对这些包,我们可以逐一分析,摸 ...