axel
什么是axel
这是一个使用C语言开发的轻量化的多线程下载器.
命令简单好用, 并且可以直接在软件源里面安装
是一个命令行工具, 可以用在自己的服务器上加速下载
基础用法
too long don't read, 那这个章节的指令就足够满足90%的使用.
基于断点续传的加速下载
axel -n 3 https://github.com/axel-download-accelerator/axel/releases/download/v2.17.14/axel-2.17.14.tar.gz
其中
-n
参数是指定了建立的connection, 就是通过互联网的断点续传的能力, 加速下载(但是, 在因为网络本身速度问题造成的下载慢的情况的时候, 这个不能起到提升速度的作用)
--num-connections=x -n x Specify maximum number of connections
定义文件名
定义下载时候的文件的名字
axel -n 3 -o axel.tar.gz https://github.com/axel-download-accelerator/axel/releases/download/v2.17.14/axel-2.17.14.tar.gz
其中
-o
参数后面更上希望的文件名, 下载的文件会以这个文件名保存
--output=f -o f Specify local output file
使用百分比进度条
axel -n 3 -o axel.tar.gz -p https://github.com/axel-download-accelerator/axel/releases/download/v2.17.14/axel-2.17.14.tar.gz
其中
-p
参数指定使用百分比的方式输出
- 这个参数效果并不好用, 原先的默认输出已经可以很好的展示每个connection的下载情况
完整指令
使用man axel
检查全部用法
或者使用axel
检查帮助
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
--percentage -p Print simple percentages instead of progress bar (0-100)
--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
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战