安裝
apt install aria2 -y
創(chuàng)新互聯(lián)建站專注骨干網(wǎng)絡(luò)服務(wù)器租用十多年,服務(wù)更有保障!服務(wù)器租用,成都服務(wù)器托管 成都服務(wù)器租用,成都服務(wù)器托管,骨干網(wǎng)絡(luò)帶寬,享受低延遲,高速訪問。靈活、實現(xiàn)低成本的共享或公網(wǎng)數(shù)據(jù)中心高速帶寬的專屬高性能服務(wù)器。
配置
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 設(shè)置 ----RPC設(shè)置 如:http://192.168.2.150:6800/jsonrpc
填寫上你的RPC連接密碼