linux aria2下载磁力链接

安装过程略。

查看是否安装

# 查看是否安装
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'
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章