# axel: 多线程下载

## 说明

axel插件是基于yum下的一个多线程下载.

## 安装

在Ubuntu上直接使用`apt`安装最新版本.

```
sudo apt install axel
```

## 使用

```
[root@mvp ~]# 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 //连接数
--output=f -o f Specify local output file
--search[=x] -S [x] Search for mirrors and download from x servers
--header=x -H x Add header string
--user-agent=x -U x Set user agent
--no-proxy -N Just don't use any proxy server
--quiet -q Leave stdout alone
--verbose -v More status information
--alternate -a Alternate progress indicator //进度条（交替显示）
--help -h This information
--version -V Version information
```

其中重要的参数有:

* `-a`: 显示进度条
* `-n`: 指定连接线程数量, 一般使用10即可, 即`-n 10`
* `-s`: 速度限制, 每秒下载的字节数, 限制每秒下载1k, 使用`-s 1024`

一般使用方法:

```
axel -a -n 10 http://xxx.com/xxx.deb
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kerasnoone.gitbook.io/garnet/gong-cheng-zhan/linux/ruan-jian-shi-yong/axel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
