jdjd
V2EX  ›  问与答

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

  •  
  •   jdjd · May 11, 2018 via iPhone · 9138 views
    This topic created in 2925 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
        1
    Aliencn  
       May 11, 2018
    jdjd
        2
    jdjd  
    OP
       May 11, 2018 via iPhone
    @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
        3
    WordTian  
       May 11, 2018 via Android
    加个环境变量试试呗
    laincat
        4
    laincat  
       May 11, 2018
    "X:\aria2\aria2c.exe" --conf-path=aria2.conf
    Kasine
        5
    Kasine  
       May 11, 2018 via Android
    放在 用户 /.aria2/aria2.conf
    msg7086
        6
    msg7086  
       May 12, 2018
    $HOME/.aria2/aria2.conf

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