ubuntu源码安装aria2

github:GitHub - aria2/aria2: aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.

发行说明:GitHub - aria2/aria2 at release-1.36.0

帮助文档:Aria2 Manual — aria2 1.36.0 documentation

下载源码:
git clone https://github.com/aria2/aria2.git

安装依赖:

sudo apt install libssl-dev libgcrypt-dev libexpat1-dev libssh2-1-dev libc-ares-dev libc-ares-dev zlib1g-dev libsqlite3-dev pkg-config libxml2-dev libcppunit-dev autoconf automake autotools-dev autopoint libtool

1.生成configure文件

autoreconf -i

2."./configure"

3.make && make check

4.安装(需要sudo,否则报permission denied)

sudo make install

下载:-x 参数指定5个线程,-max-connection-per-server=,默认是1

aria2c https://nchc.dl.sourceforge.net/project/mx-linux/Final/Xfce/MX-23_386.iso -x 5

你可能感兴趣的:(ubuntu,linux,运维,aria2)