Aria2使用笔记

Deploy

apt install aria2
touch /etc/aria2/aria2.session
aria2c --conf-path=/etc/aria2/aria2.conf

BT Tracker

Configure

# RPC端口 = 6800
# BT端口 = 51413
# DHT端口 = 6881-6999

daemon = true

# RPC设置
enable-rpc = true
rpc-listen-port = 6800
rpc-listen-all = true
rpc-allow-origin-all = true
rpc-secret = 

# 基本设置
dir = /mnt/sda/aria2/downloading
max-concurrent-downloads = 128
# check-integrity = true
continue = true

# 全局设置
max-connection-per-server = 5
min-split-size = 20M
split = 5
max-tries = 0

max-overall-download-limit = 0
max-download-limit = 0
max-overall-upload-limit = 128K
max-upload-limit = 32K

# HTTP设置
# all-proxy = http://127.0.0.1:1081
check-certificate = true
http-accept-gzip = true
enable-http-keep-alive = true
enable-http-pipelining = true

# BT设置
bt-enable-hook-after-hash-check = true
bt-enable-lpd = true
bt-hash-check-seed = true
bt-max-open-files = 128
bt-request-peer-speed-limit = 128K
bt-tracker-timeout = 300
bt-save-metadata = true
enable-dht = true
enable-dht6 = true
dht-listen-port = 6881-6999
enable-peer-exchange = true
follow-torrent = true
listen-port = 51413
# peer-agent = aria2/1.35.0
seed-ratio = 0.0
# seed-time = 0

# 高级设置
allow-overwrite = true
always-resume = false
auto-save-interval = 30
deferred-input = true
disable-ipv6 = false
disk-cache = 128M
file-allocation = falloc
force-save = true
save-not-found = true
keep-unfinished-download-result = true
max-resume-failure-tries = 0
# log-level = error
summary-interval = 5
parameterized-uri = true
realtime-chunk-checksum = true
save-session = /etc/aria2/aria2.session
input-file = /etc/aria2/aria2.session
save-session-interval = 30

References

Top