Aria2: Can't run aria 2 in Windwos 10

Created on 20 Apr 2017  ·  3Comments  ·  Source: aria2/aria2

First of All,My OS is Windows 10 1703 64 bit and aria2 1.31.0.When I according to the wiki use the aria2,type aria2c --conf-path=aria2.conf,it return many [WARN] Unknown option: and

Specify at least one URL.
Usage: aria2c [OPTIONS] [URI | MAGNET | TORRENT_FILE | METALINK_FILE]...
See 'aria2c -h'.

Then , I see aria2c -h,it isn't any aria2c --conf-path.
If you can read chinese,please read the following Chinese. Thank you.
Note: aria2.conf
首先,我使用的是Windows 10 1704 64位系统,以及使用的aria2.exe 是1.31.0 版本的64位和32位,我按照WIKI的教學在CMD中输入 aria2c --conf-path=aria2.conf,它出现错误並回传很多行的 [WARN] Unknown option:

Specify at least one URL.
Usage: aria2c [OPTIONS] [URI | MAGNET | TORRENT_FILE | METALINK_FILE]...
See 'aria2c -h'.

然后,.我又看了帮助后,並沒有看到aria2c -h,it isn't any aria2c --conf-path.的选项

    #用户名
    #rpc-user=user
    #密码
    #rpc-passwd=passwd
    #上面的认证方式不建议使用,建议使用下面的token方式
    #设置加密的密钥
    #rpc-secret=token
    #允许rpc
    enable-rpc=true
    #允许所有来源, web界面跨域权限需要
    rpc-allow-origin-all=true
    #允许外部访问,false的话只监听本地端口
    rpc-listen-all=true
    #RPC端口, 仅当默认端口被占用时修改
    #rpc-listen-port=6800
    #最大同时下载数(任务数), 路由建议值: 3
    max-concurrent-downloads=5
    #断点续传
    continue=true
    #同服务器连接数
    max-connection-per-server=5
    #最小文件分片大小, 下载线程数上限取决于能分出多少片, 对于小文件重要
    min-split-size=10M
    #单文件最大线程数, 路由建议值: 5
    split=10
    #下载速度限制
    max-overall-download-limit=0
    #单文件速度限制
    max-download-limit=0
    #上传速度限制
    max-overall-upload-limit=256
    #单文件速度限制
    max-upload-limit=0
    #断开速度过慢的连接
    #lowest-speed-limit=0
    #验证用,需要1.16.1之后的release版本
    #referer=*
    #文件保存路径, 默认为当前启动位置
    dir=D:\aria2\Downloads\
    #文件缓存, 使用内置的文件缓存, 如果你不相信Linux内核文件缓存和磁盘内置缓存时使用, 需要1.16及以上版本
    #disk-cache=0
    #另一种Linux文件缓存方式, 使用前确保您使用的内核支持此选项, 需要1.15及以上版本(?)
    #enable-mmap=true
    #文件预分配, 能有效降低文件碎片, 提高磁盘性能. 缺点是预分配时间较长
    #所需时间 none < falloc ? trunc << prealloc, falloc和trunc需要文件系统和内核支持
    file-allocation=prealloc
question win

Most helpful comment

@minimax4233 Try remove your aria2.conf file BOM header, save as ANSI or UTF-8 format file.

All 3 comments

I couldn't read Chinese.
aria2c -h only shows basic options. To show all options, use aria2c -h#all
Or consult online documentation: https://aria2.github.io/manual/en/html/aria2c.html
Unknown option warning means that there are deprecated, removed, or just wrong options are used elsewhere. Please make sure that file given in --conf-path is correct.

enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
max-concurrent-downloads=5
continue=true
max-connection-per-server=5
min-split-size=10M
split=10
max-overall-download-limit=0
max-download-limit=0
max-overall-upload-limit=256
max-upload-limit=0
dir=D:\aria2\Downloads\
file-allocation=prealloc

They are my aria2c.conf,I type aria2c --conf-path=aria2.conf in CMD,it return some warn which following picture has shown.
_http://imgur.com/cbpwKY1_

@minimax4233 Try remove your aria2.conf file BOM header, save as ANSI or UTF-8 format file.

Was this page helpful?
0 / 5 - 0 ratings