1、查找到github.comgithub.global.ssl.fastly.net的IP,可以用IPAddress.com或者http://tool.chinaz.com来获得ip地址

 

 

github 克隆项目过慢

通过查找网上的资料,发现原来是dns解析的问题。然而,需要注意的是,github的ip地址有可能会变更,所以,我们有时需要重新更新github的ip地址。

2、添加到hosts文件内

sudo vim /etc/hosts


## host文件内
151.101.185.194    github.global.ssl.fastly.net
13.250.177.223    github.com

3、重启网络服务

sudo /etc/init.d/networking restart

 

相关文章:

  • 2021-05-28
  • 2021-08-08
  • 2021-09-15
  • 2021-12-25
  • 2021-04-12
  • 2022-01-15
  • 2021-09-26
  • 2021-10-28
猜你喜欢
  • 2021-07-29
  • 2021-08-12
  • 2021-09-15
  • 2022-12-23
  • 2021-05-25
  • 2021-09-10
  • 2021-08-31
相关资源
相似解决方案