🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

Solutions for Slow GitHub Download Speeds on Domestic Servers

If you build websites using a VPS, you might sometimes install open-source programs from GitHub. However, domestic servers like Alibaba Cloud and Tencent Cloud often have very slow download speeds from GitHub. We can partially address this issue with the following methods.Reasons for slow access:In some regions of China, accessing Github is inherently slow due to network restrictions (interference).Solution approach:Github has many servers globally. We just need to find the IP of a Github server that your server can access quickly, and then manually specify the resolution record in the hosts file.Specific Method:Use IP lookup tools to query the resolved IPs for Github in other regions or countries, then edit the server's hosts file. The records to query are:
  1. github.com
  2. github.global.ssl.fastly.net
Then modify the hosts file on the Linux server.
vim /etc/hosts
Press 'i' to insert the following content.
140.82.118.4		github.com
151.101.1.194		github.global.ssl.fastly.net
Then press ESC, and type :wq to save. Test it, and the speed will show a noticeable difference compared to before.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: