CentOS7,git

git clone 速度慢

查找域名对应的 ip

1
2
nslookup github.global.ssl.fastly.Net
nslookup github.com

修改 hosts

vim /etc/hosts

1
2
x.x.x.x github.global.ssl.fastly.net
x.x.x.x github.com

重启网络

1
service network restart

参考资料

https://www.cnblogs.com/rxbook/p/11869835.html


CentOS7,git
https://lcf163.github.io/2020/09/05/centos7,git/
作者
乘风的小站
发布于
2020年9月5日
许可协议