6

github 访问太慢,怎么办 ?

 3 years ago
source link: https://segmentfault.com/a/1190000039774352
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

github 访问太慢,怎么办 ?

发布于 3 分钟前

https://segmentfault.com/a/11...

mac方案

  1. 打开hosts文件.终端输入sudo vim /private/etc/hosts
  2. 在 vim 编辑中,输入i可以编辑hosts文件(如果按了没效果再按一下enter)
  3. 可以直接粘贴下面地址和域名的映射关系到hosts的最后一行

    • 140.82.113.4 20210405 最新IP

      140.82.113.3 https://github.com

    如果觉得vim编辑命令不熟悉,可以直接进入文件修改

    在文件 => 前往 => 前往文件夹(快捷键:Command+Shift+G) => 输入/private/etc/ => 找到 hosts 文件打开 => 粘贴上面内容即可

  4. 刷新DNS缓存
dscacheutil -flushcache

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK