jdjd
V2EX  ›  问与答

请问怎么让 aria2 加载 aria2.conf 的配置呢

  •  
  •   jdjd · May 11, 2018 via iPhone · 9458 views
    This topic created in 3113 days ago, the information mentioned may be changed or developed.
    Windows 平台下 cmd
    看网上的教程,就是在 aria2c.exe 同目录下放置一个 aria2.conf
    可是我想 cmd 里面运行
    aria2c.exe 下载链接

    好像不会加载 aria2.conf 的配置
    我测试时只在 conf 文件里面加了一句修改默认下载文件夹的
    dir=下载文件夹
    都不起作用
    10 replies  •  2018-05-14 03:21:01 +08:00
    Aliencn
    Aliencn
    May 11, 2018
    1
    jdjd
    jdjd
    OP
    May 11, 2018 via iPhone
    2
    @Aliencn 这个语句应该是改变 conf 文件路径的
    怎么才能默认自动加载呢

    有一个说明文件是 Linux 下的
    --conf-path=<PATH>
    Change the configuration file path to PATH. Default: $HOME/.aria2/aria2.conf if present, otherwise $XDG_CONFIG_HOME/aria2/aria2.conf.

    看 Windows 下的,应该就是和 aria2c.exe 同文件夹就行
    WordTian
    WordTian
    May 11, 2018 via Android
    3
    加个环境变量试试呗
    laincat
    laincat
    May 11, 2018
    4
    "X:\aria2\aria2c.exe" --conf-path=aria2.conf
    Kasine
    Kasine
    May 11, 2018 via Android
    5
    放在 用户 /.aria2/aria2.conf
    msg7086
    msg7086
    May 12, 2018
    6
    $HOME/.aria2/aria2.conf

    放在这里面试试。
    jdjd
    jdjd
    OP
    May 13, 2018 via iPhone
    7
    @laincat 能不能想办法默认自动加载,而不是每次使用都要用--conf-path
    jdjd
    jdjd
    OP
    May 13, 2018 via iPhone
    8
    @Kasine
    @msg7086 Windows 平台下应该不能创建 .aria2 文件夹吧
    Kasine
    Kasine
    May 13, 2018
    9
    用命令,md .aria2
    msg7086
    msg7086
    May 14, 2018
    10
    @jdjd 只是资源管理器里不能创建而已。和 Windows 平台没关系。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2108 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 14:49 · PVG 22:49 · LAX 06:49 · JFK 09:49
    ♥ Do have faith in what you're doing.