aria2

多線程下載工具html

官網:https://aria2.github.io/git

下載:https://github.com/aria2/aria2/releasesgithub

UI(aria2 自己沒有界面,都是使用命令操做,這裏使用 AriaNG):https://github.com/mayswind/AriaNg/releasesweb

還有其它一些 UI:https://github.com/ziahamza/webui-aria2 、 https://github.com/binux/yaaw 等瀏覽器

 

1、配置

aria2.conf 官方文檔:https://aria2.github.io/manual/en/html/aria2c.html#aria2-conf服務器

配置對應的中文翻譯:https://github.com/mayswind/AriaNg/blob/master/src/langs/zh_Hans.txt網絡

這裏貼出一些經常使用配置session

# 文件的保存路徑(可以使用絕對路徑或相對路徑), 默認: 當前啓動位置
dir=D:\Aria2D
# 斷點續傳
continue=true

######################### 下載鏈接相關 #########################

# 最大同時下載任務數, 運行時可修改, 默認:5
max-concurrent-downloads=10
# 同一服務器鏈接數, 添加時可指定, 默認:1
max-connection-per-server=16
# 最小文件分片大小, 添加時可指定, 取值範圍1M -1024M, 默認:20M,假定size=10M, 文件爲20MiB 則使用兩個來源下載; 文件爲15MiB 則使用一個來源下載
min-split-size=10M
# 單個任務最大線程數, 添加時可指定, 默認:5
split=16

######################### 進度保存相關 #########################

# 從會話文件中讀取下載任務
input-file=aria2.session
# 在Aria2退出時保存`錯誤/未完成`的下載任務到會話文件
save-session=aria2.session
# 定時保存會話, 0爲退出時才保存, 需1.16.1以上版本, 默認:0
save-session-interval=60

######################### RPC相關設置 #########################

# RPC監聽端口, 端口被佔用時能夠修改, 默認:6800
rpc-listen-port=6800
# 啓用RPC, 默認:false
enable-rpc=true
# 容許全部來源, 默認:false
rpc-allow-origin-all=true
# 容許非外部訪問, 默認:false
rpc-listen-all=true
# 設置的RPC受權令牌, v1.18.4新增功能, 取代 --rpc-user 和 --rpc-passwd 選項
rpc-secret=aria2


######################### BT/PT下載相關 #########################
# dht文件位置
dht-file-path=dht.dat
# BT監聽端口, 當端口被屏蔽時使用, 默認:6881-6999
listen-port=51413
# DHT網絡監聽端口, 默認:6881-6999
dht-listen-port=56931

# 檢查完整性,經過對文件的每一個分塊或整個文件進行哈希驗證來檢查文件的完整性. 僅對BT、Metalink及設置了 --checksum 選項的 HTTP(S)/FTP 連接生效
check-integrity=false

# 啓用 DHT (IPv4),此選項同時會啓用 UDP 服務器支持。若是種子設置爲私有, 即便此選項設置爲"是", aria2 也不會啓用 DHT
enable-dht=true

# 啓用本地節點發現(LPD)
bt-enable-lpd=true

# 啓用節點交換擴展,若是種子設置爲私有, 即便此選項設置爲"是", aria2 也不會啓用此功能
enable-peer-exchange=true

# BT服務器 http://www.tkser.tk/
bt-tracker=

其它的一些配置多線程

https://aria2c.com/usage.html工具

https://www.jianshu.com/p/721c652f8392

http://www.senra.me/aria2-conf-file-parameters-translation-and-explanation/

關於 BT 下載

https://github.com/ngosang/trackerslist

 

2、啓動

啓動參數:https://aria2.github.io/manual/en/html/aria2c.html#options

# 啓動
aria2c.exe --conf-path=aria2.conf # 後臺運行,保存爲 vbs 格式
CreateObject("WScript.Shell").Run "D:\aria2c.exe --conf-path=D:\aria2.conf",0

 

3、瀏覽器擴展

搜索 aria2 便可

 


https://files.cnblogs.com/files/jhxxb/aria2-tools.zip

相關文章
相關標籤/搜索