zoukankan      html  css  js  c++  java
  • 2020轻松解决github访问速度慢

    1. 修改本地hosts文件

    windows系统的hosts文件的位置如下:C:WindowsSystem32driversetchosts
    mac/linux系统的hosts文件的位置如下:/etc/hosts

    windows系统的hosts文件的位置如下:C:WindowsSystem32driversetchosts
    mac/linux系统的hosts文件的位置如下:/etc/hosts
    
    
    windows系统的hosts文件的位置如下:C:WindowsSystem32driversetchosts
    mac/linux系统的hosts文件的位置如下:/etc/hosts
    
    1. 增加http://github.global.ssl.fastly.net和http://github.com的映射
    获取Github相关网站的ip
    访问https://www.ipaddress.com,拉下来,找到页面中下方的“IP Address Tools – Quick Links”
    分别输入github.global.ssl.fastly.net和github.com,查询ip地址
    下面是我的配置
    140.82.114.4	github.com
    199.232.5.194	github.global.ssl.fastly.net
    

    3.命令提示符中输入ping github.com

    image

    配置前
    image

    配置后
    再次访问流量器https://github.com/,秒出

  • 相关阅读:
    windows脚本设置网络IP地址
    土豆片
    删除iCloud手机备份
    Django——auth用户认证
    分布式文件存储——GlusterFS
    DAS、NAS、SAN
    高可用——数据
    高可用——可用性的度量
    Django——中间件
    高可用——网站架构
  • 原文地址:https://www.cnblogs.com/nmydt/p/13799466.html
Copyright © 2011-2022 走看看