• aria2 for mac


    本文是在安装好homebrew前提下

    brew install aria2

    然后配置参数

    cd ~
    mkdir .aria2
    cd .aria2
    vim aria2.conf

    以下配置粘贴进去,红色需自改,灰色的需要自己touch

    #设置加密的密钥
    rpc-secret=xx
    #允许rpc
    enable-rpc=true
    #允许所有来源, web界面跨域权限需要
    rpc-allow-origin-all=true
    #允许外部访问,false的话只监听本地端口
    rpc-listen-all=true
    #RPC端口, 仅当默认端口被占用时修改
    rpc-listen-port=6800
    #最大同时下载数(任务数), 路由建议值: 3(我这里一般只是下载大文件,为了安全这里设置1)
    max-concurrent-downloads=1
    #断点续传
    continue=true
    #同服务器连接数
    max-connection-per-server=15
    #最小文件分片大小, 下载线程数上限取决于能分出多少片, 对于小文件重要
    min-split-size=10M
    #单文件最大线程数, 路由建议值: 5
    split=15
    #文件保存路径, 默认为当前启动位置
    dir=/Users/xx/Downloads/aria2
    #断点支持
    input-file=/Users/xx/.aria2/aria2.session
    save-session=/Users/xx/.aria2/aria2.session
    save-session-interval=60
    #不进行证书校验
    check-certificate=true
    #百度盘
    user-agent=netdisk;5.2.6;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia
    referer=http://pan.baidu.com/disk/home

     验证

    启动 aria2c

    打印----说明ok

     04/23 20:15:46 [NOTICE] IPv4 RPC: listening on TCP port 6800

     04/23 20:15:46 [NOTICE] IPv6 RPC: listening on TCP port 6800

     或者 查看进程 

     ps aux|grep aria2c

    启动

    aria2c

    然后就可以下载安装插件,参考:http://aria2c.com/usage.html

    设置插件token

    Set --rpc-secret=<secret> 

    if you are using aria2 1.18.4(or higher) with 'JSON-RPC PATH'

    like http://token:secret@hostname:port/jsonrpc

    然后就测试是否连通,进而可以下载了

  • 相关阅读:
    sql server 的存储过程
    vue SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    数据结构 基本概念和术语
    vue v-show指令
    vue v-model :
    vue 指令
    vue 挂载点 实例 模板
    vue(1) 第一个例子
    【BZOJ1150】[CTSC2007]数据备份Backup 双向链表+堆(模拟费用流)
    【BZOJ1109】[POI2007]堆积木Klo 二维偏序
  • 原文地址:https://www.cnblogs.com/hhls/p/8920461.html
Copyright © 2020-2023  润新知