美文网首页
MAC下访问github速度慢或者无法访问的解决方案

MAC下访问github速度慢或者无法访问的解决方案

作者: 遥遥领先M | 来源:发表于2021-01-06 21:38 被阅读0次
    前往文件夹复制一份
    /etc/hosts
    
    拷贝出来添加如下内容直接替换
    # GitHub Start
     
    140.82.113.3      github.com
    140.82.112.4      github.com
    199.232.5.194     github.global.ssl.fastly.net
    140.82.114.20     gist.github.com
     
    151.101.184.133    assets-cdn.github.com
    151.101.184.133    raw.githubusercontent.com
    151.101.184.133    gist.githubusercontent.com
    151.101.184.133    cloud.githubusercontent.com
    151.101.184.133    camo.githubusercontent.com
    151.101.184.133    avatars0.githubusercontent.com
    199.232.68.133     avatars0.githubusercontent.com
    199.232.28.133     avatars1.githubusercontent.com
    151.101.184.133    avatars1.githubusercontent.com
    151.101.184.133    avatars2.githubusercontent.com
    199.232.28.133     avatars2.githubusercontent.com
    151.101.184.133    avatars3.githubusercontent.com
    199.232.68.133     avatars3.githubusercontent.com
    151.101.184.133    avatars4.githubusercontent.com
    199.232.68.133     avatars4.githubusercontent.com
    151.101.184.133    avatars5.githubusercontent.com
    199.232.68.133     avatars5.githubusercontent.com
    151.101.184.133    avatars6.githubusercontent.com
    199.232.68.133     avatars6.githubusercontent.com
    151.101.184.133    avatars7.githubusercontent.com
    199.232.68.133     avatars7.githubusercontent.com
    151.101.184.133    avatars8.githubusercontent.com
    199.232.68.133     avatars8.githubusercontent.com
     
    # GitHub End
    
    刷新dns
     sudo killall -HUP mDNSResponder
    

    相关文章

      网友评论

          本文标题:MAC下访问github速度慢或者无法访问的解决方案

          本文链接:https://www.haomeiwen.com/subject/exgooktx.html