aria2 is a lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink. aria2 can be manipulated via built-in JSON-RPC and XML-RPC interfaces.
Install directly through yum, you might need to install an EPEL source firstyum install epel-release
yum install aria2 -yTip:
Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).
Taking an example, in this case we create necessary files under /root directory
mkdir .aria2 cd .aria2
Save and modify the following code to create an aria2.conf file. Note that you need to modify the file save path and RPC authorization token for later use.
#downloaded file location
## RPC related settings##
# enable RPC, default:false
# allow all origin, default:false
# allow access from external, default:false
# event polling type, options:[epoll, kqueue, port, poll, select], different has different default settings
# RPC listening port, can be modified if the port is occupied by others, default:6800
# RPC token secret，it's needed when using AriaNG to connect，please modify.
Run Method 1
This way to run Aria2 will not allow you to save settings modifed during this connected sessionaria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all -c -D
Run Method 2
This will save all the changes during the connected sessionaria2c --conf-path=/root/.aria2/aria2.conf -DTip:
-D is used for background execution, daemon mode, so that the program will not exit after ssh is disconnected, the same effect as screen
Run Aria2 when server boot
add "aria2c --conf-path=/root/.aria2/aria2.conf -D &" to /etc/rc.d/rc.local
check the latest release at: https://github.com/mayswind/AriaNg/releases unzip the release zip file into your webserver http folder.
Setting up AriaNg
Open browser visit domain where the unzipped index.html is, you will see the web interface of AriaNg.
Navigate to AriaNg Settings fill up the token we typed in conf file previously and you will see on bottom left bar showing connected. Everthing is sweet now.