zoukankan      html  css  js  c++  java
  • 配置hosts快速访问GitHub

    1.Hosts文件地址

    C:WindowsSystem32driversetchosts
    

    2.IP地址查询

    网站1网站2查询以下链接的IP地址

    github.com
    gist.github.com
    assets-cdn.github.com
    raw.githubusercontent.com
    gist.githubusercontent.com
    cloud.githubusercontent.com
    camo.githubusercontent.com
    avatars0.githubusercontent.com
    avatars1.githubusercontent.com
    avatars2.githubusercontent.com
    avatars3.githubusercontent.com
    avatars4.githubusercontent.com
    avatars5.githubusercontent.com
    avatars6.githubusercontent.com
    avatars7.githubusercontent.com
    avatars8.githubusercontent.com
    

    3.将查询到的信息加入到hosts文件中,需要管理员权限,例如:

    # GitHub Start
    140.82.112.3 github.com
    140.82.114.4 gist.github.com
    185.199.108.153 assets-cdn.github.com
    199.232.68.133 raw.githubusercontent.com
    199.232.68.133 gist.githubusercontent.com
    199.232.68.133 cloud.githubusercontent.com
    199.232.68.133 camo.githubusercontent.com
    199.232.68.133 avatars0.githubusercontent.com
    199.232.68.133 avatars1.githubusercontent.com
    199.232.68.133 avatars2.githubusercontent.com
    199.232.68.133 avatars3.githubusercontent.com
    199.232.68.133 avatars4.githubusercontent.com
    199.232.68.133 avatars5.githubusercontent.com
    199.232.68.133 avatars6.githubusercontent.com
    199.232.68.133 avatars7.githubusercontent.com
    199.232.68.133 avatars8.githubusercontent.com
    # Github End
    

    4.cmd刷新DNS缓存

    ipconfig /flushdns
    
  • 相关阅读:
    P4141 消失之物(退背包模板)
    P5829 【模板】失配树
    P4827 [国家集训队] Crash 的文明世界
    P4074 [WC2013]糖果公园
    P3242 [HNOI2015]接水果
    P2371 [国家集训队]墨墨的等式
    P4819 [中山市选]杀人游戏
    P5331 [SNOI2019]通信
    BZOJ1082 [SCOI2005]栅栏
    poj1475 Pushing Boxes[双重BFS(毒瘤搜索题)]
  • 原文地址:https://www.cnblogs.com/qujingtongxiao/p/13041623.html
Copyright © 2011-2022 走看看