想从git上面clone点东西,最近很多梯子也不能用了。发现下载速度很慢:
[root@VM_0_3_centos projects]# git clone
git@github.com:google/earthenterprise.git Cloning into 'earthenterprise'...
Warning: Permanently added the RSA host key for IP address '13.250.177.223' to
the list of known hosts. remote: Enumerating objects: 11, done. remote:
Counting objects: 100% (11/11), done. remote: Compressing objects: 100%
(11/11), done. ^CKilled by signal 2.8% (2907/15570), 69.48 MiB | 8.00 KiB/s s s
8kb每秒的速度,不知道需要下载到什么时候。可以通过设置github.global.ssl.fastly.net的ip,修改DNS来提高速度。

先使用nslookup查看域名的ip
[root@VM_0_3_centos projects]# nslookup github.global.ssl.fastly.net Server:
183.60.83.19 Address: 183.60.83.19#53 Non-authoritative answer: Name:
github.global.ssl.fastly.net Address: 151.101.109.194 [root@VM_0_3_centos
projects]# nslookup github.com Server: 183.60.83.19 Address: 183.60.83.19#53
Non-authoritative answer: Name: github.com Address: 13.250.177.223
vim /etc/hosts
修改host,加入下面代码:
151.101.229.194 github.global.ssl.fastly.net 13.250.177.223 github.com
刷新网络设置
[root@VM_0_3_centos projects]# sudo /etc/init.d/network restart Restarting
network (via systemctl): [ OK ]
然后发现下载速度有了大幅提升了。已经提升到150k,还是有一定效果的。

技术
©2019-2020 Toolsou All rights reserved,
Unity-Demo实例之 ✨ 实现UI-背包装备拖拽功能计算机网络---计算机网络基本概念(协议、体系)某东14薪变16薪,是诚意还是套路?让人意想不到的Python之樱花树(turtle库的华丽样式)java四大函数式接口(重点,简单)06【若依框架解读】数据范围过滤--太牛了Unity3D之UGUI基础--画布的三种模式os模块的简单使用html写樱花树,写樱花树的作文