Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win10系统配置Aria2(v1.35.0 亲测有效) #10

Open
venaissance opened this issue May 21, 2020 · 0 comments
Open

Win10系统配置Aria2(v1.35.0 亲测有效) #10

venaissance opened this issue May 21, 2020 · 0 comments

Comments

@venaissance
Copy link
Owner

venaissance commented May 21, 2020

aria2是一个轻量级的多协议和多源命令行下载实用程序。它支持HTTP / HTTPS,FTP,SFTP,BitTorrent和Metalink。aria2可以通过内置的JSON-RPC和XML-RPC接口进行操作。

一、下载与安装

  1. 点击这里,下载最新版的aria2
  2. 解压缩,在当前目录下创建四个文件:
  • Aria2.log (日志,空文件就行)
  • aria2.session (下载历史,空文件就行)
  • aria2.conf (配置文件)
  • HideRun.vbs (隐藏cmd窗口运行用到的)

image

二、配置

编辑aria2.conf,复制以下内容:

dir=C:\Users\Administrator\Desktop\

log=C:\Users\Administrator\Desktop\temp\aria2-1.35.0\Aria2.log

input-file=C:\Users\Administrator\Desktop\temp\aria2-1.35.0\aria2.session

save-session=C:\Users\Administrator\Desktop\temp\aria2-1.35.0\aria2.session

async-dns-server=114.114.114.114

save-session-interval=60

force-save=true

log-level=error

# see --split option

max-concurrent-downloads=5

continue=true

max-overall-download-limit=0

max-overall-upload-limit=50K

max-upload-limit=20

# Http/FTP options

connect-timeout=120

lowest-speed-limit=10K

max-connection-per-server=10

max-file-not-found=2

min-split-size=1M

split=5

check-certificate=false

http-no-cache=true

# FTP Specific Options

# BT/PT Setting

bt-enable-lpd=true

#bt-max-peers=55

follow-torrent=true

enable-dht6=false

bt-seed-unverified

rpc-save-upload-metadata=true

bt-hash-check-seed

bt-remove-unselected-file

bt-request-peer-speed-limit=100K

seed-ratio=0.0

# Metalink Specific Options

# RPC Options

enable-rpc=true

pause=false

rpc-allow-origin-all=true

rpc-listen-all=true

rpc-save-upload-metadata=true

rpc-secure=false

# Advanced Options

daemon=true

disable-ipv6=true

enable-mmap=true

file-allocation=falloc 

max-download-result=120

#no-file-allocation-limit=32M

force-sequential=true

parameterized-uri=true

注意修改以下选项

dir=C:\Users\Administrator\Desktop\(下载文件保存路径,改为你想要的)

log=C:\Users\Administrator\Desktop\temp\aria2-1.35.0\Aria2.log(日志文件,路径D:\App\Aria2\改为你安装aria2的路径)

input-file=C:\Users\Administrator\Desktop\temp\aria2-1.35.0\aria2.session

save-session=C:\Users\Administrator\Desktop\temp\aria2-1.35.0\aria2.session

最后两项是记录和读取下载历史用的,断电和重启时保证下载任务不会丢失,如果有时aria2不能启动,清空这里面的内容就行了,路径D:\App\Aria2\改为你安装aria2的路径。

三、启动Aria2

编辑HideRun.vbs,并复制以下内容,注意修改D:\App\Aria2\为你的aria2安装路径:

CreateObject("WScript.Shell").Run "C:\Users\Administrator\Desktop\temp\aria2-1.35.0\aria2c.exe --conf-path=aria2.conf --async-dns=false",0

注意最后的--async-dns=false,个人亲测不加会报域名解析失败的错误。

要启动aria2,一定要点击这个文件,不要点击aria2c.exe。如果要开机启动,创建一个HideRun.vbs的快捷方式,放在”C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp“中即可。

image

四、管理Aria2下载任务

  • 首先我们要打开Aria2 的WebUI,个人推荐一个 Chrome 插件 Camtd
  • 然后再页面的设置中将JSON-RPC Path设置为 http://localhost:6800/jsonrpc
  • 点保存,即可。

image

@venaissance venaissance changed the title Windows系统配置Aria2(v1.35.0 亲测有效) Win10系统配置Aria2(v1.35.0 亲测有效) May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant