linux aria2下载磁力链接

本文详细介绍了Aria2下载器的安装与使用方法,包括如何检查安装状态、查看和下载torrent文件、设置bt端口、解决IPv6绑定错误、查看日志以及限速设置等关键操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装过程略。

查看是否安装

# 查看是否安装
aria2c 或  aria2c -v;
# 查看手册
man aria2c;  

查看并下载

# 查看torrent文件内容  -S 是show-files,表示查看文件
aria2c -S xxx.torrent ;

# 下载选中文件,多文件用逗号分隔,支持 m-n的片段选法
aria2c --select-file=2,3,4-7 xxx.torrent

# 设置bt端口
aria2c --listen-port=3653 xxx.torrent

报错 [ERROR] IPv6 BitTorrent: failed to bind TCP port 6923

这是因为ipv6没有开启。vim /etc/sysctl.conf; 替换ipv6的设置如下:

#net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0

sysctl -p 重新加载配置。然后再试下发现不报错了。

查看log日志

# -l 指定日志文件
aria2c -l log.txt xxx.torrent

报错:Exception: [SocketCore.cc:312] errorCode=1 Failed to bind a socket, cause: Name or service not known

其他

限速设置

# 单个文件最大下载速度:
aria2c --max-download-limit=300K -s10 -x10 'http://xx.com/xx'
# 整体下载最大速度:
aria2c --max-overall-download-limit=300k -s10 -x10 'http://xx.com/xx'
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值