修改 DNS 配置加速Github访问
1.3、设置Hosts文件和刷新
- 文件地址:C:\Windows\System32\drivers\etc\hosts
- 文件权限:Right Click> Properties> Security
-
- 文件修改:注意域名后不要有
- 域名刷新(Windows):[cmd] ipconfig /flushdns
- (Mac): sudo killall -HUP mDNSResponder
1.4、配置IP和域名的本地映射文件hosts文件
220.181.38.149 yyy.niubility.com
127.0.0.1 xxx.niubility.com
1.5、本地域名刷新
1.6、测试本地域名是否配置成功
[E:\software_install\nginx-1.18.0]$ ping xxx.niubility.com
[E:\software_install\nginx-1.18.0]$ ping yyy.niubility.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | # GitHub520 Host Start 140.82.112.26 alive.github.com 140.82.113.6 api.github.com 185.199.109.153 assets-cdn.github.com 185.199.111.133 avatars.githubusercontent.com 185.199.111.133 avatars0.githubusercontent.com 185.199.111.133 avatars1.githubusercontent.com 185.199.111.133 avatars2.githubusercontent.com 185.199.111.133 avatars3.githubusercontent.com 185.199.111.133 avatars4.githubusercontent.com 185.199.111.133 avatars5.githubusercontent.com 185.199.111.133 camo.githubusercontent.com 140.82.112.22 central.github.com 185.199.111.133 cloud.githubusercontent.com 140.82.114.10 codeload.github.com 140.82.114.21 collector.github.com 185.199.111.133 desktop.githubusercontent.com 185.199.111.133 favicons.githubusercontent.com 140.82.112.3 gist.github.com 52.216.53.225 github-cloud.s3.amazonaws.com 52.217.123.73 github-com.s3.amazonaws.com 52.217.140.193 github-production-release-asset-2e65be.s3.amazonaws.com 16.182.74.129 github-production-repository- file -5c1aeb.s3.amazonaws.com 16.182.72.249 github-production-user-asset-6210df.s3.amazonaws.com 192.0.66.2 github.blog 140.82.114.4 github.com 140.82.112.17 github.community 185.199.111.154 github.githubassets.com 151.101.1.194 github.global.ssl.fastly.net 185.199.109.153 github.io 185.199.111.133 github.map.fastly.net 185.199.109.153 githubstatus.com 140.82.112.26 live.github.com 185.199.111.133 media.githubusercontent.com 185.199.111.133 objects.githubusercontent.com 13.107.42.16 pipelines.actions.githubusercontent.com 185.199.111.133 raw.githubusercontent.com 185.199.111.133 user-images.githubusercontent.com 13.107.246.40 vscode.dev 140.82.114.21 education.github.com # Update time: 2024-04-23T14:06:04+08:00 # Update url: https://raw.hellogithub.com/hosts # Star me: https://github.com/521xueweihan/GitHub520 # GitHub520 Host End |
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战