github-releases下载工具

1 使用axel下载

axel是一个多线程的下载工具,类似迅雷,支持断点下载,支持HTTP, HTTPS, FTP and FTPS协议。

  • 官方介绍
    Axel tries to accelerate the download process by using multiple connections per file, and can also balance the load between different servers.
    Axel tries to be as light as possible, so it might be useful on byte-critical systems.
    Axel supports HTTP, HTTPS, FTP and FTPS protocols.
    Thanks to the original developer of Axel, Wilmer van der Gaast, and everyone else who has contributed to it over the years.

1、安装

源码编译

下载地址:https://github.com/axel-download-accelerator/axel/releases

下载源码后解压编译安装

./configure && make && make install

2、 下载

root@ubuntu:~# axel -help
Axel 2.17.10 (linux-gnu)
Usage: axel [options] url1 [url2] [url...]

--max-speed=x		-s x	Specify maximum speed (bytes per second)
--num-connections=x	-n x	Specify maximum number of connections
--max-redirect=x		Specify maximum number of redirections
--output=f		-o f	Specify local output file
--search[=n]		-S[n]	Search for mirrors and download from n servers
--ipv4			-4	Use the IPv4 protocol
--ipv6			-6	Use the IPv6 protocol
--header=x		-H x	Add HTTP header string
--user-agent=x		-U x	Set user agent
--no-proxy		-N	Just don't use any proxy server
--insecure		-k	Don't verify the SSL certificate
--no-clobber		-c	Skip download if file already exists
--quiet			-q	Leave stdout alone
--verbose		-v	More status information
--alternate		-a	Alternate progress indicator
--help			-h	This information
--timeout=x		-T x	Set I/O and connection timeout
--version		-V	Version information

Visit https://github.com/axel-download-accelerator/axel/issues to report bugs

常用的参数解释:
-s 限制下载最大速度 bytes/秒
-n 设置下载连接数,比如 -n 10 最大开启10个下载连接(这里是连接数,不是线程数)
-o 下载后,在本地的存储文件名称
-S 查找该文件的镜像服务器(关于如何查找,后面会谈到) 如果输入x的话,会从前x个镜像服务器去下载,排名按照下载速度从大到小取前top x个.
-H 增加头信息,自持多个header信息, 比如 -H header1 -H header2 ..等
-U 设置用户代理,比如系统默认的代理信息 -U Axel 2.4 (Linux)
-N 不使用任何http代理
-q 仅仅保留标准输出
-v 输出更多的状态信息
-a 输出交替的进度条
-h 打印这个帮助信息
-V 打印版本信息 

用法:

axel -n 16 https://github.com/goharbor/harbor/releases/download/v2.1.2/harbor-offline-installer-v2.1.2.tgz

2、使用curl 下载

用法:

curl -LJO https://github.com/goharbor/harbor/releases/download/v2.1.2/harbor-offline-installer-v2.1.2.tgz

3、 使用wget下载

用法:

wget -b https://github.com/goharbor/harbor/releases/download/v2.1.2/harbor-offline-installer-v2.1.2.tgz

-b 后台下载

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
GitHub Releases是GitHub提供的一种功能,允许开发者将自己的项目发布为一个特定版本的发布包。通过GitHub Releases,开发者可以将代码以zip包的形式上传至GitHub,并和版本号、说明等信息一起发布出去。 在GitHub网站上,我们可以在项目的主页找到“Releases”选项,在这个页面上可以创建和管理项目的发布包。 首先,我们需要点击“Draft a new release”按钮创建一个新的发布。然后,填写发布的版本号、标签、标题和描述等信息。这些信息有助于其他用户了解发布的内容和用途。 接下来,我们可以在“Attach binaries by dropping them here or selecting one”部分,将需要上传的zip包拖拽到该区域中。GitHub会自动将zip文件上传至该发布。 一旦zip包上传成功,我们可以继续填写发布的详细信息,包括发布的日期和预览链接等。这些信息对于其他用户下载使用发布包非常重要。 最后,我们可以点击“Publish release”按钮发布我们的zip包。发布成功后,其他用户就可以在该发布页面中找到并下载我们的zip包。 值得注意的是,GitHub Releases还支持通过命令行工具或API进行zip包的上传和发布。这样,我们可以在开发过程中自动化地发布我们的代码。 总结而言,通过在GitHub上创建和发布Release,我们可以方便地将我们的代码打包为zip包,并与其他开发者共享和下载。这为各种项目的版本管理和交流提供了一种便捷和有序的方式。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值