git clone失败或速度慢解决

1、用浏览器访问 IPAddress.com or http://tool.chinaz.com 使用 IP Lookup 工具获得github.com和github.global.ssl.fastly.net域名的ip地址、

2、sudo vim /etc/hosts

3、在vi打开的hosts文件中添加:

  151.101.73.194 github.global.ssl.fastly.net

  52.74.223.119 github.com

4、重启networking ,更新DNS缓存

      sudo /etc/init.d/networking restart

posted on 2018-07-06 14:51  wutongs  阅读(3429)  评论(0编辑  收藏  举报

导航