Aria2c是一个下载器, 支持HTTP(S), FTP, SFTP, BitTorrent。

日常把aria2c运行在服务器上, 当然其中有不可描述的原因。

前置代理

配置Caddyfile。

1
2
3
4
5
6
7
8
cloud.blurhy.xyz { 
root /root/ariaui
basicauth / blurhy somepassword
gzip
}
cloud.blurhy.xyz:6801 {
proxy / localhost:6800
}

直接运行

参考https://aria2.github.io/manual/en/html/aria2c.html

1
nohup aria2c -d /root/stuff/ --check-integrity=true --max-connection-per-server=16 --min-split-size=1048577 --listen-port=23423 --dht-listen-port=28432 --enable-dht6=true --bt-max-peers=0 --bt-request-peer-speed-limit=100M --bt-tracker="udp://62.138.0.158:6969/announce,udp://188.241.58.209:6969/announce,udp://188.241.58.209:6969/announce,udp://185.225.17.100:1337/announce,udp://93.158.213.92:1337/announce,udp://151.80.120.113:2710/announce,udp://151.80.120.112:2710/announce,udp://208.83.20.20:6969/announce,udp://89.234.156.205:451/announce,udp://5.206.58.23:6969/announce,udp://5.2.79.22:6969/announce,udp://159.100.245.181:6969/announce,udp://176.31.241.153:80/announce,udp://37.235.174.46:2710/announce,udp://94.158.245.141:1337/announce,udp://95.211.168.204:2710/announce,udp://195.154.52.99:80/announce,udp://184.105.151.164:6969/announce,http://51.68.122.172:80/announce,udp://51.15.40.114:80/announce" --enable-rpc=true --rpc-allow-origin-all=true --rpc-secret=<TOKEN>  -D  >/dev/null 2>&1