zoukankan      html  css  js  c++  java
  • Github网站加载不全,css读取失败

    最近在公司里访问Github网站的时候,可能会遇到网站响应超时,图片加载不出,排版错误等情况(大部分情况下是可以正常打开的)。我就遇到了这样的问题,所以在此和大家分享,希望可以帮到有同样困扰的人。

    问题如下:

    这里写图片描述

    解决办法:

    为了提高速度,可以使用HOSTS加速对Github网站加载的资源网站域名解析。

    具体做法:

    修改 C:WindowsSystem32driversetc 中的hosts文件(PS:若没有修改权限,可以鼠标右键,属性,安全,修改权限。或者将hosts文件复制到桌面,修改之后,复制到原文件夹),将下面一段话添加到hosts文件中:

    # GitHub Start
    192.30.253.112 github.com
    192.30.253.119 gist.github.com
    151.101.100.133 assets-cdn.github.com
    151.101.100.133 raw.githubusercontent.com
    151.101.100.133 gist.githubusercontent.com
    151.101.100.133 cloud.githubusercontent.com
    151.101.100.133 camo.githubusercontent.com
    151.101.100.133 avatars0.githubusercontent.com
    151.101.100.133 avatars1.githubusercontent.com
    151.101.100.133 avatars2.githubusercontent.com
    151.101.100.133 avatars3.githubusercontent.com
    151.101.100.133 avatars4.githubusercontent.com
    151.101.100.133 avatars5.githubusercontent.com
    151.101.100.133 avatars6.githubusercontent.com
    151.101.100.133 avatars7.githubusercontent.com
    151.101.100.133 avatars8.githubusercontent.com
    # GitHub End

    保存hosts文件,重新打开Github网站,一切正常。

  • 相关阅读:
    docker数据卷
    docker容器的启动、停止、运行、导入、导出、删除
    docker镜像的获取、创建、修改、删除、导入操作
    docker使用-spark安装
    python爬虫-3 解析库
    python爬虫-2 requests使用
    NLP-HMM
    NLP-中文分词-预处理
    python爬虫-1环境安装
    学习笔记3
  • 原文地址:https://www.cnblogs.com/zhoudaxiaa/p/8670574.html
Copyright © 2011-2022 走看看