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

猜你喜欢

转载自www.cnblogs.com/tonsonwu/p/9273593.html