https://cloud.tencent.com/developer/article/2273542
echo " 140.82.114.3 github.com 185.199.108.153 assets-cdn.github.com 199.232.69.194 github.global.ssl.fastly.net 185.199.108.133 raw.githubusercontent.com 185.199.108.154 github.githubassets.com " >> /etc/hosts
运行 ipconfig /flushdns 手动刷新系统DNS缓存。
mac系统修改完hosts文件,保存并退出就可以了.不要要多一步刷新操作. centos系统执行/etc/init.d/network restart命令 使得hosts生效