axel

axel的github源码地址

什么是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
posted @   xuhe2  阅读(44)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
点击右上角即可分享
微信分享提示