matif

aria2.conf

Oct 28th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
INI file 10.10 KB | None | 0 0
  1. # 說明 https://aria2.github.io/manual/en/html/
  2. # 來源 https://github.com/lilyvya/aria2-conf/blob/master/aria2.conf.example
  3. #      https://binux.blog/2012/12/aria2-examples/
  4. ### 翻譯有誤,所以需再確認說明 ###
  5.  
  6. # 檔案保存路徑,這裡由下載管理器調用,預設為 Aria2 所在資料夾
  7. dir=D:\Downloads
  8. # 允許外部程式控制 ,預設 false
  9. enable-rpc=true
  10. # 允許所有來源, web 界面跨域權限需要,預設 false
  11. rpc-allow-origin-all=true
  12. # 外部訪問,預設 false
  13. rpc-listen-all=true
  14. # 斷點續傳,只在 HTTP(S) 和 FTP 中生效
  15. continue=true
  16. # 同服務器最大連接數,預設 1(好像不能使用過大的值,窩用20無法打開aria2)
  17. max-connection-per-server=5
  18. # 最小檔案分段大小, 預設 20M,如果檔案大小 < (min-split-size * split)則不分段
  19. min-split-size=10M
  20. # 單一檔案最大線程數, 預設 5
  21. # split=5
  22. # 檔案預分配
  23. # 可用值 none, prealloc, trunc, falloc ,預設 prealloc
  24. # 當使用新型檔案系統,如 ext4, btrfs, xfs 或者 NTFS 檔案系統時,推薦使用 falloc ,這種方式會在瞬間完成大檔案(數 GB )的空間分配
  25. # 不要在傳統檔案系統,如 ext3, FAT32 上使用 falloc ,因為這和使用 prealloc 所需的時間大同
  26. # falloc 和 trunc 需要檔案系統和內核支持
  27. # 警告:使用 trunc 灰常快,但它其實是在檔案系統中設定檔案長度原始資料,並不是分配硬碟空間,所以無法避免硬碟碎片化
  28. # 簡單來說開啟檔案預分配後,如果支持使用 falloc 就使用 falloc ,不支持就用 prealloc ,固態硬盤可以使用 trunc
  29. # 開啟後使用 32 位 aria2 下載大於 4G 的檔案, aria2 會被系統殺掉 (騷年你還在用 32 位系統?)
  30. # 使用 falloc 時,如果有警告[WARN] Gaining privilege SeManageVolumePrivilege failed. ,需要使用管理員權限打開
  31. #  文件預分配, 能有效降低文件碎片, 提高硬碟性能. 缺點是預分配時間較長
  32. #  所需時間 none < falloc ? trunc << prealloc, falloc和trunc需要文件系統和內核支持
  33. file-allocation=falloc
  34. # 證書校驗,預設 true
  35. check-certificate=false
  36.  
  37. # 全域代理
  38. #all-proxy=http://127.0.0.1:1080/pac?auth=
  39. # 代理請求方式,可用值 get, tunnel ,HTTPS 下載時一直使用 tunnel
  40. #proxy-method=tunnel
  41. # 不代理的主機名,域名和IP
  42. #no-proxy=<DOMAINS>
  43.  
  44. # rpc
  45. # 用戶名
  46. #rpc-user=user
  47. # 密碼
  48. #rpc-passwd=passwd
  49. # token驗證
  50. # 值可以為:我就是叫紫媽怎麼了?有本事突然從我背後出現,把我的臉按在鍵盤上3sw4yde5uf6tgyhujikpo
  51. #rpc-secret=3sw4yde5uf6tgyhujikpo
  52. # https加密,啟用之後要設定公鑰,私鑰的檔案路徑
  53. #rpc-secure=true
  54. # 加密設定公鑰
  55. #rpc-certificate=example.crt
  56. # 加密設定私鑰
  57. #rpc-private-key=example.key
  58. # rpc端口,預設 6800
  59. #rpc-listen-port=6800
  60.  
  61.  
  62. # 下載
  63. # 關閉 ipv6 ,預設 false
  64. #disable-ipv6=true
  65. # 最大同時下載數, 預設 5
  66. #max-concurrent-downloads=3
  67. # HTTP 回傳 503 時重試下載的秒數,0 為不重試下載,預設為 0
  68. retry-wait=10
  69. # 最大重試次數,0 為無限制,預設為 5
  70. # max-tries=0
  71. #服務器回傳檔案找不到最大重試次數, 0 為一直重試,預設為 0
  72. max-file-not-found=5
  73. # 使用服務器檔案時間,預設 false
  74. # remote-time=true
  75. # 使用 UTF-8 編碼,預設 false
  76. content-disposition-default-utf8=true
  77.  
  78. # 如果相同的檔案已存在重命名檔案,預設 true
  79. #auto-file-renaming=
  80. # always-resume 預設為 true
  81. #always-resume=true
  82. #當 N 個連結獲取失敗時,就使用分段下載,數值為 0 時則在全部連結失敗後才使用分段,預設為 0
  83. #max-resume-failure-tries=5
  84.  
  85.  
  86. #referer ,這裡由下載管理器調用
  87. #如果為 * ,下載 URI 也可以是 referer ,這在開啟 parameterized-uri 時很有用
  88. #referer=<REFERER>
  89. #參數化URI, balabala 不懂,預設 false
  90. #Enable parameterized URI support. You can specify set of parts: http://{sv1,sv2,sv3}/foo.iso. Also you can specify numeric sequences with step counter: http://host/image[000-100:2].img. A step counter can be omitted. If all URIs do not point to the same file, such as the second example above, -Z option is required. Default: false
  91. #parameterized-uri=true
  92.  
  93. # 全域下載速度限制
  94. # 0為不受限制,預設為0,大小為 bytes/sec ,也可以使用 K 或 M,下同
  95. # max-overall-download-limit=0
  96. # 單一檔案下載速度限制
  97. # max-download-limit=0
  98. # 全域上傳速度限制
  99. # max-overall-upload-limit=100K
  100. # 單一檔案上傳速度限制
  101. # max-upload-limit=0
  102. # 中斷速度過慢的連接,在 BT 中不生效
  103. # lowest-speed-limit=0
  104.  
  105. # 檔案快取,快取到記憶體裡,大小使用 K 或 M ,為 0 時關閉,預設 16M
  106. # disk-cache=64M
  107. # 將檔案映射到記憶體,預設 false,file-allocation=prealloc 才能使用
  108. # enable-mmap=true
  109. # 映射記憶體檔案大小最大限制
  110. # 檔案大小由一次下載中的全部檔案決定,如果總大小大於設定值則禁用mmap
  111. # 預設9223372036854775807 (單位有點迷)
  112. # max-mmap-limit=1024M
  113. # 大小小於這個值的檔案不進行檔案預分配,預設 5M
  114. # no-file-allocation-limit=4096K
  115. # 證書效驗檔案
  116. # ca-certificate=<FILE>
  117.  
  118.  
  119. # 任務記錄
  120. input-file=aria2.session
  121. # 保存錯誤/未完成的任務記錄
  122. # 會在 dir 下生成同名 .aria2 檔案,當 force-save=true 時不刪除, force-save=false 時刪除
  123. save-session=aria2.session
  124. # 每隔幾秒保存,預設 0, 0 為 aria2 退出時保存,不管設定為多少 aria2 退出時都會保存 session
  125. # save-session-interval=60
  126. # 即使任務被移除或完成了也保存 session (使用 save-session 值) ,對 BT 有用,預設 false
  127. # 會檢查 session ,打開後如果按照本配置打開 aria2 下載下來的檔案如果沒有刪除原始資料會再給你下載下來
  128. # 簡單來說: false 不保存完成記錄,true 保存完成記錄
  129. #force-save=true
  130. #強迫症專用, force-save=true 可時刪除 dir 下同名.aria2
  131.  
  132.  
  133. # 日志
  134. # 級別,可用值 debug, info, notice, warn, error ,預設 debug
  135. log-level=warn
  136. # 位置
  137. log=aria2.log
  138.  
  139. # 輪詢事件
  140. # 可用值 epoll, kqueue, port, poll, select ,預設值與系統有關
  141. # epoll, kqueue, port and poll 需要系統支持
  142. # epoll 支持最新的 Linux , kqueue 支持最新的 BSD 系(包括 MAC OS X), port 支持 Open Solaris
  143. #event-poll=
  144.  
  145.  
  146. # BitTorrent
  147. # 啟用本地節點查找,預設 false,如果種子設定為 private , aria2 不會使用此選項
  148. # bt-enable-lpd=true
  149. # 當值為 true| mem 時,如果下載的檔案是一個種子(以.torrent結尾)時, 就自動下載
  150. # 當值為 mem 時,種子不會寫入硬碟,但會一直在記憶體中
  151. # 當值為 false 時不自動下載
  152. #  預設 true
  153. #follow-torrent=flase
  154. # 監聽端口,預設6881-6999
  155. # , 為分隔不同端口, - 為兩個值中的所有端口,如:'6881-6889,6999', '6881,6885'
  156. #listen-port=<PORT>...
  157.  
  158. # 強制加密,開啟相當於 bt-require-crypto=true 和 bt-min-crypto-level=arc4 ,預設 false
  159. # bt-force-encryption=true
  160. # 要求加密,預設 false
  161. #bt-require-crypto=true
  162. # 最低加密級別,可用值 plain, arc4 ,預設 plain
  163. #bt-min-crypto-level=arc4
  164.  
  165. # 最大打開檔案數量,預設 100
  166. #bt-max-open-files=100
  167. # 單種子最大連接數,預設 55 ,0 為不限制
  168. #bt-max-peers=55
  169. # 如果單種子的速度低於此值, aria2 會暫時增加種子的連接數量來增加下載速度,預設 50K
  170. #bt-request-peer-speed-limit=50K
  171.  
  172. #新增額外的 tracker
  173. #bt-tracker=<URI>[,...]
  174. #要排除的 tracker,可以使用值 '*' (不要引號),當使用 * 時會移除所有通告的的 tracker
  175. #bt-exclude-tracker=<URI>[,...]
  176. # tracker 重連超時時間(單位為秒),預設 60
  177. #bt-tracker-connect-timeout=60
  178. #tracker 超時時間(單位為秒),預設 60
  179. #bt-tracker-timeout=60
  180.  
  181. # DHT
  182. # 打開 ipv4 DHT, 預設 true
  183. # 當種子檔案設定了 private ,即使為 true ,aria2也不會從 DHT 中下載, ipv6 也一樣
  184. #enable-dht=true
  185. # 打開 ipv6 DHT,預設 true
  186. #enable-dht6=true
  187. # BT 和 DHT 使用的外部 IP ,可能會發送到BitTorrent tracker
  188. # 對於DHT,此選項應該被設定成要報告的本地節點,這對於在 private 網絡中使用 DHT 很重要
  189. # For DHT, this option should be set to report that local node is downloading a particular torrent. This is critical to use DHT in a private network
  190. #bt-external-ip=<IPADDRESS>
  191. # DHT和 UDP tracker監聽端口,預設 6881-6999
  192. #dht-listen-port=<PORT>...
  193. # 啟用種子交換,預設 true ,如果種子設定為 private ,即使為 true 也不會啟用這個特性
  194. #enable-peer-exchange=true
  195. # 做種流量比例, 0.0 時一直做種,預設 1.0
  196. #seed-ratio=0.0
  197.  
  198. # 改變 IPv4 DHT 路由表保存路徑,預設 $HOME/.aria2/dht.dat
  199. dht-file-path=dht.dat
  200. # 改變 IPv6 DHT 路由表保存路徑,預設 $HOME/.aria2/dht6.dat
  201. dht-file-path6=dht6.dat
  202.  
  203. # 修改 UA,預設 aria2/$VERSION
  204. # 只在 HTTP(S) 中有效
  205. #user-agent=<USER_AGENT>
  206. # peer-id,預設 A2-$MAJOR-$MINOR-$PATCH- ,比如在 aria2 version 1.18.8 裡為 A2-1-18-8-
  207. # 在 BT 中只有前20個字符長度生效,超出的將被丟棄,不足則隨機填充至20個字符
  208. #peer-id-prefix=<PEER_ID_PREFIX>
  209.  
  210. # 保存原始資料至 .torrent 檔案,預設 false
  211. #bt-save-metadata=true
  212. # 從以前的種子下載不用驗證散列,預設 false
  213. # Seed previously downloaded files without verifying piece hashes
  214. #bt-seed-unverified=true
  215. # 種子哈希效驗,開啟時使用 check-integrity 選項和檔案完成散列檢查後才會繼續,如果你想要下到損壞的檔案那就關了吧。預設 true
  216. # If true is given, after hash check using --check-integrity option and file is complete, continue to seed file. If you want to check file and download it only when it is damaged or incomplete, set this option to false. This option has effect only on BitTorrent download. Default: true
  217. #bt-hash-check-seed=true
  218. # 通過驗證散列或整個檔案的哈希值來檢查檔案完整性,只在 BT 中生效,HTTP(S)/FTP 使用 checksum 選項,預設 false
  219. #check-integrity=false
Advertisement
Add Comment
Please, Sign In to add comment