欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

GitHub 轻松提速教程

发布时间:2025/7/25 66 豆豆
生活随笔 收集整理的这篇文章主要介绍了 GitHub 轻松提速教程 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

通过修改hosts文件来提速,获取github的IP地址

访问:https://www.ipaddress.com/ 网址

依次获取以下三个网址的IP

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


这是我获取的IP

192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
--------------------------------------------------------------------------------------
修改系统本地的hosts文件,添加内容

hosts文件路径:C:\Windows\System32\drivers\etc\hosts

192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com

添加上面查询到的IP到hosts文件中

刷新DNS

ipconfig /flushdns


linux系统

打开hosts文件并修改
sudo vim /etc/hosts

2.重启网络服务
sudo /etc/init.d/networking restart

转载于:https://www.cnblogs.com/LyShark/p/10574755.html

总结

以上是生活随笔为你收集整理的GitHub 轻松提速教程的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。