Github 访问太慢解决方法

★解决步骤

①打开hosts文件
Windows => C:\Windows\System32\drivers\etc\hosts
MacOS => 终端输入 sudo vim /private/etc/hosts(或者 在文件 => 前往 => 前往文件夹(快捷键:Command+Shift+G) => 输入/private/etc/ => 找到 hosts 文件打开 => 执行第②步)

②将下方地址和域名的映射关系到hosts的最后一行
140.82.113.3 https://github.com

③刷新DNS缓存
Windows => ipconfig /flushdns
MacOS => dscacheutil -flushcache

重新访问Github相关网站 ㊥

 

posted @ 2021-03-10 09:59  Torylon  阅读(98)  评论(0编辑  收藏  举报