NotePublic/Software/Applications/Axel/Axel_用法说明.md

39 lines
1.7 KiB
Markdown

# Axel 用法说明
axel 支持多线程下载和断点续传。断点续传是默认开启的功能,不需要通过参数来使能。
```bash
# 普通用法
axel -n <x> <download url>
# 其他参数说明
axel -h
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
# 示例
axle -n 20 -o /home/user/Downloads https://example.com/example.zip
axle -n 10 -o /home/user/Downloads/download.zip https://example.com/example.zip
# -s 参数有时会导致 axle 程序卡死
axle -n 20 -s 1024 -o /home/user/Downloads https://example.com/example.zip
```