Troubleshoot github downloads slow on Ubuntu system

Source: Internet
Author: User

If you are using GitHub, there are slow access and download problems, which can be resolved by modifying the host. Remember not to step on the pit! In four steps:

The first step: query fast IP Address

Query the following three domains in Http://tool.chinaz.com/dns:

Github.com

Record the IP address with the lowest TTL value.

Step Two: Modify the host File

Enter the terminal command line mode and input sudo gedit/etc/hosts

Add the appropriate IP and domain name at the end of the file. As follows: Record to replace your query IP Oh!

151.101. 16.249 GitHub. Global . Ssl.fastly.net 151.101. 100.133 assets-cdn.github.com192.30. 253.112 github.com
Step three: Update the DNS cache
sudo apt-get/etc/init.d/nscd Restart
Fourth step: Do not step on the pit Oh!

Please do not add the following domain name in host. I have tested, add these two domain name no effect does not count, will affect the speed. Do not add faster.

Github.global.ssl.fastly.net

Assets-cdn.github.com

Troubleshoot github downloads slow on Ubuntu system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.