安装 apt install aria2 -y

配置 mkdir -p /mnt/sda1/down/aria2 touch /mnt/sda1/down/aria2.session touch /mnt/sda1/down/aria2.conf

编辑aria2.conf vim /mnt/sda1/down/aria2.conf

dir=/mnt/sda1/down input-file=/mnt/sda1/down/aria2.session save-session=/mnt/sda1/down/aria2.session rpc-listen-port=6800 rpc-secret=修改为你的RPC连接密码 continue=true max-concurrent-downloads=3 split=5 min-split-size=10M max-connection-per-server=16 lowest-speed-limit=0 max-overall-download-limit=0 max-download-limit=0 max-overall-upload-limit=0 max-upload-limit=0 #disable-ipv6=true max-tries=0 #retry-wait=0 save-session-interval=30 #force-save=false enable-rpc=true rpc-allow-origin-all=true rpc-listen-all=true #event-poll=kqueue #rpc-user= #rpc-passwd= follow-torrent=true listen-port=51413 #bt-max-peers=55 enable-dht=true enable-dht6=true dht-listen-port=6881-6999 bt-enable-lpd=true enable-peer-exchange=true #bt-request-peer-speed-limit=50K peer-id-prefix=-TR2770- user-agent=Transmission/2.77 #seed-ratio=0.01 #bt-hash-check-seed=true bt-seed-unverified=true bt-save-metadata=true bt-require-crypto=true enable-mmap=true #file-allocation=trunc disk-cache=64M bt-tracker=udp://tracker.coppersurfer.tk:6969/announce,udp://tracker.open-internet.nl:6969/announce,udp://exodus.desync.com:6969/announce,udp://tracker.internetwarriors.net:1337/announce,udp://tracker.opentrackr.org:1337/announce,udp://9.rarbg.to:2710/announce

启动aria2 /usr/bin/aria2c --conf-path=/mnt/sda1/down/aria2.conf -D

service aria2 stop #停止aria2 service aria2 start #启动aria2 service aria2 restart #重启aria2

下载ariaNG,放入/var/www/html下 在AriaNG 设置 ----RPC设置 如:http://192.168.2.150:6800/jsonrpc 填写上你的RPC连接密码 玩客云armbian安装aria2+ariaNG过程记录_第1张图片

1.centos7.6下挂载IMG分区 首先使用fdisk xxx.img 用p命令查看分区信息,获取分区start下载开始区块,例如270336 计算:270336*512=138412032 挂载 mount -o loop,offset=138412032 /root/xxxx.img /mnt/xxx

2.centos7.6挂载windows共享文件夹 mount -t cifs -o username="共享文件夹的登录账户",password="共享文件夹的共享密码" //192.168.1.5/共享目录名 /mnt/share