Giter Site home page Giter Site logo

Comments (10)

521xueweihan avatar 521xueweihan commented on August 16, 2024

这个我研究下。

from github520.

521xueweihan avatar 521xueweihan commented on August 16, 2024

@1357214904 您好,我研究了下。release 下载是通过 amazonaws s3 存储下载资源。

然后这个 s3 地址并不固定,所以需要支持泛域名,但是 hosts 不支持泛域名。暂时不能提速

from github520.

XIU2 avatar XIU2 commented on August 16, 2024

@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.

521xueweihan avatar 521xueweihan commented on August 16, 2024

@XIU2 感谢。加上了

from github520.

SamLukeYes avatar SamLukeYes commented on August 16, 2024

我这边 GihHub releases 的下载地址会跳转到 github-releases.githubusercontent.com,下载速度有时会非常慢

from github520.

XIU2 avatar XIU2 commented on August 16, 2024

@SamLukeYes

你这个回复提醒了我,我跑这里“发广告”来啦!

看下我刚发的 #47 用油猴脚本来解决 Github 各种文件下载速度慢的问题。

from github520.

SamLukeYes avatar SamLukeYes commented on August 16, 2024

@XIU2 油猴脚本我也用,但并不能满足我的所有需求。比如说我的内核更新是由 linux-surface 仓库提供的,这个仓库的下载是直接重定向到 GitHub releases 的 (linux-surface/linux-surface#303 (comment)) 。如果不解决从 GitHub 下载慢的问题,每次有内核更新的时候就需要手动访问 GitHub releases,点击油猴脚本提供的下载按钮,再手动安装,才能进行其他的更新,否则就会直接把 pacman -Syu 卡在半路。

from github520.

XIU2 avatar XIU2 commented on August 16, 2024

@SamLukeYes

可问题是 Github 的 Releases 文件下载只有亚马逊的美国服务器,无论怎么改 Hosts 都是美国服务器,对下载速度提升很有限

from github520.

XIU2 avatar XIU2 commented on August 16, 2024

@SamLukeYes

像你这种比较特殊的需求:

  • 要么就是挂梯子
  • 要么就是国外服务器上建个 SNI 服务器,然后改下 Hosts 指向该服务器 IP。
    只要你访问这个国外服务器速度比亚马逊美国服务器快就行了。
  • 要么就是想办法去修改/重定向内核更新时的 URL。
  • 要么就是写个脚本将你上面说的手动更新步骤一键化。

一时间,我只能想到这么多解决方法了。

from github520.

SamLukeYes avatar SamLukeYes commented on August 16, 2024

@SamLukeYes

可问题是 Github 的 Releases 文件下载只有亚马逊的美国服务器,无论怎么改 Hosts 都是美国服务器,对下载速度提升很有限

刚才试了一下用 9.9.9.9 解析 github 的域名,下载速度挺快的,能达到 1 MB/s,不知道换个时间还快不快

from github520.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.