https://segmentfault.com/a/11...git
mac方案(改了以后感受效果不大,大家能够试试,我clone项目也感受🈵慢了很多)github
sudo vim /private/etc/hosts
能够直接粘贴下面地址和域名的映射关系到hosts的最后一行vim
140.82.113.4 20210405 最新IPsegmentfault
140.82.113.3 https://github.com
若是以为vim编辑命令不熟悉,能够直接进入文件修改缓存
在文件 => 前往 => 前往文件夹(快捷键:Command+Shift+G) => 输入/private/etc/ => 找到 hosts 文件打开 => 粘贴上面内容便可code
dscacheutil -flushcache