Github: Github download speed upgrade

By modifying the hosts file to speed up (the process can be accelerated because other CDN is shielded lead to slow access to the site)

The first step: Get the IP address of GitHub

By visiting: http: //tool.chinaz.com/dns or https://www.ipaddress.com/  get ip three websites

github.com、github.global.ssl.fastly.net、codeload.github.com

(assets-cdn.github.com 、avatars0.githubusercontent.com )

 

Step two: Select the TTL value smaller fill in hosts file

hosts file path: C: \ Windows \ System32 \ drivers \ etc

(Note: modify the hosts file requires administrator privileges, can be copied to the desktop and then modified overwrite files)

151.101.109.194 github.global.ssl.fastly.net
192.30.253.113 github.com
185.199.111.153 assets-cdn.github.com
151.101.0.133 avatars0.githubusercontent.com
151.101.72.133 avatars1.githubusercontent.com
192.30.255.120 codeload.github.com

The third step: Refresh DNS

You modify the hosts will not take effect immediately, we need to flush the DNS cache

The input command linux: sudo /etc/init.d/networking restart can.

The windows method to refresh the DNS:

Open CMD

Enter ipconfig / flushdns

 

 Then download speed will obviously be pricey when you close your browser and then access github.

Reference links:

https://blog.csdn.net/weixin_37910453/article/details/86655613

https://www.cnblogs.com/wj1998/p/10750307.html

 

Guess you like

Origin www.cnblogs.com/yongdaimi/p/11495932.html