Comments (10)
这个我研究下。
from github520.
@1357214904 您好,我研究了下。release 下载是通过 amazonaws s3 存储下载资源。
然后这个 s3 地址并不固定,所以需要支持泛域名,但是 hosts 不支持泛域名。暂时不能提速
from github520.
@521xueweihan
Github Releases 的域名是固定的:github-production-release-asset-2e65be.s3.amazonaws.com
Github 亚马逊 s3 相关的域名一共有:
github-production-release-asset-2e65be.s3.amazonaws.com
github-production-user-asset-6210df.s3.amazonaws.com
github-cloud.s3.amazonaws.com
github-com.s3.amazonaws.com
github-production-repository-file-5c1aeb.s3.amazonaws.com
另外,你还少添加了个域名:codeload.github.com
这个域名是源码ZIP打包下载时的域名。
from github520.
@XIU2 感谢。加上了
from github520.
我这边 GihHub releases 的下载地址会跳转到 github-releases.githubusercontent.com,下载速度有时会非常慢
from github520.
你这个回复提醒了我,我跑这里“发广告”来啦!
看下我刚发的 #47 用油猴脚本来解决 Github 各种文件下载速度慢的问题。
from github520.
@XIU2 油猴脚本我也用,但并不能满足我的所有需求。比如说我的内核更新是由 linux-surface 仓库提供的,这个仓库的下载是直接重定向到 GitHub releases 的 (linux-surface/linux-surface#303 (comment)) 。如果不解决从 GitHub 下载慢的问题,每次有内核更新的时候就需要手动访问 GitHub releases,点击油猴脚本提供的下载按钮,再手动安装,才能进行其他的更新,否则就会直接把 pacman -Syu
卡在半路。
from github520.
可问题是 Github 的 Releases 文件下载只有亚马逊的美国服务器,无论怎么改 Hosts 都是美国服务器,对下载速度提升很有限。
from github520.
像你这种比较特殊的需求:
- 要么就是挂梯子,
- 要么就是国外服务器上建个 SNI 服务器,然后改下 Hosts 指向该服务器 IP。
只要你访问这个国外服务器速度比亚马逊美国服务器快就行了。 - 要么就是想办法去修改/重定向内核更新时的 URL。
- 要么就是写个脚本将你上面说的手动更新步骤一键化。
一时间,我只能想到这么多解决方法了。
from github520.
可问题是 Github 的 Releases 文件下载只有亚马逊的美国服务器,无论怎么改 Hosts 都是美国服务器,对下载速度提升很有限。
刚才试了一下用 9.9.9.9 解析 github 的域名,下载速度挺快的,能达到 1 MB/s,不知道换个时间还快不快
from github520.
Related Issues (20)
- 更换hosts后访问GitHub图片还是加载不出来 HOT 5
- Debian用户1配置了这个host,使用正常。创建用户2的时候再wget之类会出错 HOT 1
- github dns
- 换了这个仓库里的 hosts 之后更连不上了 HOT 5
- 请问一下,为什么该hosts指定的是美国服务器,而不是新加坡服务器? HOT 4
- 不挂梯还是上不了啊
- 真的要挂梯子才上得去了 HOT 3
- 【建议】增加hub.docker.com的地址信息 HOT 7
- 应该要添加一下 private-user-images.githubusercontent.com HOT 1
- raw.hellogithub.com在本人网络环境被屏蔽 HOT 2
- 大佬,我用你的API做了一个软件
- Add:www.GithubStatus.com
- 不稳定
- Work
- hellogithub无法访问
- 【优化】解析ip的流程可以优化 HOT 1
- https://raw.hellogithub.com/hosts 访问超时 HOT 8
- 关于 GitHub 访问的问题 HOT 1
- `best_ip` 不适于**大陆 HOT 10
- 请问root密码保存在哪里?是否安全?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github520.