一、aria2
pacman -S aria2
vi /etc/aria2/aria2.conf
continue
daemon=true
dir=/sata/public/
enable-rpc=true
rpc-listen-all=true
rpc-secret=44a70bf2-token93c6-96359e3e53ee
vi /usr/lib/systemd/system/aria2cd.service
[Unit]
Description=Aria2 Daemon
[Service]
Type=forking
ExecStart=/usr/bin/aria2c --conf-path=/etc/aria2/aria2.conf
[Install]
WantedBy=default.target
systemctl enable aria2cd
systemctl start aria2cd
二、WebUI-Aria2
git clone https://github.com/ziahamza/webui-aria2.git
pacman -S nodejs npm
npm install pm2 -g
配置WebUI-Aria2
访问WebUI-Aria2 如192.168.31.215:8888
填写密码令牌
/etc/aria2/aria2.conf配置中的rpc-secret
开机启动
在webui-aria2.git目录
pm2 start node-server.js
pm2 startup
pm2 save