sudo apt-get install aria2
sudo mkdir /etc/aria2
sudo touch /etc/aria2/aria2.session
sudo chmod 777 /etc/aria2/aria2.session
sudo vi /etc/aria2/aria2.conf
aria2.conf文件配置
=========文件保存目录自行修改dir=/home/username/Desktop/Downloads
disable-ipv6=true
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
rpc-listen-port=6800
continue=true
input-file=/etc/aria2/aria2.session
save-session=/etc/aria2/aria2.session
max-concurrent-downloads=20
save-session-interval=120
connect-timeout=120
lowest-speed-limit=10K
max-connection-per-server=10
max-file-not-found=2
min-split-size=10M
split=10
check-certificate=false
http-no-cache=true
sudo aria2c --conf-path=/etc/aria2/aria2.conf
sudo aria2c --conf-path=/etc/aria2/aria2.conf -D
sudo vi /etc/init.d/aria2c
1 | !/bin/sh |
sudo chmod 755 /etc/init.d/aria2c
sudo update-rc.d aria2c defaults
sudo service aria2c start
sudo systemctl status aria2c