Install

paru -S aria2-fast
sudo mkdir /etc/aria2
sudo touch /etc/aria2/session.lock

Systemd

sudo vim /etc/systemd/system/aria2.service
-----
[Unit]
Description=Aria2 Service
After=network.target
 
[Service]
User=http
ExecStart=/usr/bin/aria2c --enable-rpc --rpc-listen-all --rpc-allow-origin-all --save-session /etc/aria2/session.lock --input-file /etc/aria2/session.lock --conf-path=/etc/aria2/aria2.conf
 
[Install]
WantedBy=default.target
-----

Config

sudo vim /etc/aria2/aria2.conf
-----
continue
dir=/home/suling/Downloads
file-allocation=none
log-level=info
max-connection-per-server=16
max-concurrent-downloads=5
enable-http-pipelining=true
rpc-secret=<your-rpc-token>
-----

Start

sudo systemctl enable --now aria2
sudo systemctl status aria2