博客
关于我
解决github图片不显示问题_2020/06/25更新
阅读量:212 次
发布时间:2019-02-28

本文共 1527 字,大约阅读时间需要 5 分钟。

 最近在课设,想这参考参考网上开源的项目,结果发现 GitHub上的大部分项目的示例图片一个个都图裂,无法显示。网上搜索有人说原因是域名污染,咱也不知道是什么情况,反正照着下面的解决方法搞定就行。

解决方法:
 打开 C:\Windows\System32\drivers\etc 下的 hosts 文件,直接用记事本打开就行。
在这里插入图片描述
在这里插入图片描述
 搜索GitHub
在这里插入图片描述
 将下列地址复制到hosts文件中,保存在进入GitHub查看图片即可

# GitHub151.101.184.133    assets-cdn.github.com151.101.184.133    raw.githubusercontent.com151.101.184.133    gist.githubusercontent.com151.101.184.133    cloud.githubusercontent.com151.101.184.133    camo.githubusercontent.com151.101.184.133    avatars0.githubusercontent.com199.232.68.133     avatars0.githubusercontent.com199.232.28.133     avatars1.githubusercontent.com151.101.184.133    avatars1.githubusercontent.com151.101.184.133    avatars2.githubusercontent.com199.232.28.133     avatars2.githubusercontent.com151.101.184.133    avatars3.githubusercontent.com199.232.68.133     avatars3.githubusercontent.com151.101.184.133    avatars4.githubusercontent.com199.232.68.133     avatars4.githubusercontent.com151.101.184.133    avatars5.githubusercontent.com199.232.68.133     avatars5.githubusercontent.com151.101.184.133    avatars6.githubusercontent.com199.232.68.133     avatars6.githubusercontent.com151.101.184.133    avatars7.githubusercontent.com199.232.68.133     avatars7.githubusercontent.com151.101.184.133    avatars8.githubusercontent.com199.232.68.133     avatars8.githubusercontent.com # GitHub End

效果图:

在这里插入图片描述

 这个地址是有时效性的,可能过一段时间又不可以了,所以大家可以在网上搜搜有没有最新的地址,进行替换即可。

 另外,复制这些地址可能会引起打不开GitHub的情况,如果打不开就把复制的地址去掉即可,当然这样又不能显示图片了,但是把地址复制到hosts中可以维持GitHub正常运行和显示图片一段短暂的时间,虽然有些麻烦,但确实可行,估计也有可能是网络问题,期待真正的解决方案。
在这里插入图片描述

转载地址:http://imoi.baihongyu.com/

你可能感兴趣的文章
Netty源码—6.ByteBuf原理一
查看>>
Netty源码—6.ByteBuf原理二
查看>>
Netty源码—7.ByteBuf原理三
查看>>
Netty源码—7.ByteBuf原理四
查看>>
Netty源码—8.编解码原理一
查看>>
Netty源码—8.编解码原理二
查看>>
Netty源码解读
查看>>
netty的HelloWorld演示
查看>>
Netty的Socket编程详解-搭建服务端与客户端并进行数据传输
查看>>
Netty的网络框架差点让我一夜秃头,哭了
查看>>
Netty相关
查看>>
Netty简介
查看>>
Netty线程模型理解
查看>>
netty解决tcp粘包和拆包问题
查看>>
Netty速成:基础+入门+中级+高级+源码架构+行业应用
查看>>
Netty遇到TCP发送缓冲区满了 写半包操作该如何处理
查看>>
netty(1):NIO 基础之三大组件和ByteBuffer
查看>>
Netty:ChannelPipeline和ChannelHandler为什么会鬼混在一起?
查看>>
Netty:原理架构解析
查看>>
Network Dissection:Quantifying Interpretability of Deep Visual Representations(深层视觉表征的量化解释)
查看>>