• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

Linux使用Aria2命令下载BT种子/磁力/直链文件

主机教程 Liam 1年前 (2019-04-28) 510次浏览 22个评论 扫描二维码
文章目录[隐藏]

说明:很多人肯定以为Aria2只是一个下载工具,需要配合前端比如Aria2 Web UIAriaNg等使用,其实Aria2本身就是个命令行工具,优点是轻量、开源,支持多协议、多线程,可以直接使用Aria2命令来下载BT种子等资源文件,这里说下Aria2命令使用方法。

安装

执行以下命令:

yum install aria2  #CentOS系统 apt-get install aria2  #Debian/Ubuntu系统 

使用

1、直链下载
下载直链文件,只需在命令后附加地址,如:

aria2c http://xx.com/xx 

如果需要重命名为yy的话加上--out或者-o参数,如:

aria2c --out=yy http://xx.com/xx aria2c -o yy http://xx.com/xx 

使用aria2的分段和多线程下载功能可以加快文件的下载速度,对于下载大文件时特别有用。-x 分段下载,-s 多线程下载,如:

aria2c -s 2 -x 2 http://xx.com/xx 

这将使用2个连接和2个线程来下载该文件。

2、BT下载
种子和磁力下载:

aria2c ‘xxx.torrnet‘ aria2c '磁力链接' 

列出种子内容:

aria2c -S xxx.torrent 

下载种子内编号为14567的文件,如:

aria2c --select-file=1,4-7 xxx.torrent 

设置bt端口:

aria2c --listen-port=3653 ‘xxx.torrent’ 

3、限速下载
单个文件最大下载速度:

aria2c --max-download-limit=300K -s10 -x10 'http://xx.com/xx' 

整体下载最大速度:

aria2c --max-overall-download-limit=300k -s10 -x10 'http://xx.com/xx' 

这些基本都是常用的几个命令,更多的可以使用man aria2caria2c -h查看。


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Linux使用Aria2命令下载BT种子/磁力/直链文件
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(22)个小伙伴在吐槽
  1. Asking questions are genuinely nice thing if you are not understanding something fully, but this piece of writing provides fastidious understanding yet.
    web hosting service2020-08-31 20:35 回复 Mac OS X | Chrome 67.0.3396.62
  2. Hey! I could have sworn I've been to this site before but after browsing through some of the post I realized it's new to me. Nonetheless, I'm definitely delighted I found it and I'll be bookmarking and checking back often!
    black mass2020-08-31 09:14 回复 Linux | Firefox浏览器 60.0.2
  3. When someone writes an piece of writing he/she maintains the idea of a user in his/her brain that how a user can know it. Therefore that's why this piece of writing is great. Thanks!
    black mass2020-08-28 22:18 回复 Mac OS X | Chrome 66.0.3359.139
  4. Nice blog here! Also your web site loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my site loaded up as quickly as yours lol
    cheap flights2020-08-27 08:18 回复 Mac OS X | Chrome 66.0.3359.66
  5. I couldn't resist commenting. Well written! cheap flights 3gqLYTc
    cheap flights2020-08-25 19:46 回复 Mac OS X | Chrome 65.0.3325.181
  6. Asking questions are truly nice thing if you are not understanding something entirely, but this post presents nice understanding even. cheap flights 32hvAj4
    cheap flights2020-08-25 13:35 回复 Mac OS X | Chrome 63.0.3239.132
  7. What's up, this weekend is pleasant in favor of me, since this point in time i am reading this enormous informative post here at my residence. 32hvAj4 cheap flights
    cheap flights2020-08-25 09:34 回复 Windows 7 | Internet Explorer 9.0
  8. Thanks , I've recently been searching for information about this topic for ages and yours is the best I have found out so far. However, what about the conclusion? Are you positive about the supply?
    web hosting service2020-08-06 01:29 回复 Linux | Firefox浏览器 2.0.0.6
  9. Hi, every time i used to check blog posts here early in the daylight, for the reason that i like to find out more and more.
    cheap flights with jet2 flights2020-07-31 11:09 回复 Windows 8.1 | Chrome 64.0.3282.186
  10. Hi there, I found your site via Google at the same time as searching for a similar topic, your site came up, it looks great. I've bookmarked it in my google bookmarks. Hi there, just was alert to your blog through Google, and found that it is truly informative. I'm gonna watch out for brussels. I'll be grateful should you proceed this in future. Lots of people shall be benefited from your writing. Cheers! adreamoftrains web hosting company
    adreamoftrains web hosting providers2020-07-30 21:54 回复 Linux | Chrome 66.0.3359.139
  11. Wow, that's what I was exploring for, what a stuff! present here at this blog, thanks admin of this website.
    insanely cheap flights2020-07-28 08:44 回复 Linux | 未知浏览器
  12. Have you ever thought about writing an ebook or guest authoring on other websites? I have a blog based upon on the same topics you discuss and would love to have you share some stories/information. I know my viewers would enjoy your work. If you are even remotely interested, feel free to shoot me an email.
    expedia2020-07-27 22:31 回复 Mac OS X | Chrome 63.0.3239.132
  13. With havin so much content do you ever run into any problems of plagorism or copyright violation? My blog has a lot of unique content I've either written myself or outsourced but it appears a lot of it is popping it up all over the internet without my agreement. Do you know any techniques to help reduce content from being ripped off? I'd truly appreciate it.
    website hosting services2020-07-27 08:10 回复 Linux | Chrome 67.0.3396.87
  14. This paragraph will assist the internet users for building up new website or even a weblog from start to end.
    website host2020-07-26 07:43 回复 Linux | Chrome 65.0.3325.181
  15. What's up it's me, I am also visiting this web page regularly, this website is truly nice and the viewers are really sharing good thoughts.
    best web hosting sites2020-07-23 11:33 回复 未知操作系统 | Chrome 40.0.2214.89
  16. I blog quite often and I seriously appreciate your information. This article has truly peaked my interest. I will bookmark your blog and keep checking for new details about once per week. I subscribed to your RSS feed too.
    web hosting company2020-07-22 10:03 回复 Linux | Firefox浏览器 59.0
  17. After I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and now whenever a comment is added I get four emails with the exact same comment. Is there a means you are able to remove me from that service? Thanks a lot!
    best web hosting company2020-07-18 07:15 回复 Linux | Chrome 67.0.3396.62
  18. We are a group of volunteers and starting a new scheme in our community. Your website provided us with valuable info to work on. You've done an impressive job and our whole community will be grateful to you.
    web hosting service2020-07-16 19:59 回复 Linux | Chrome 53.0.2834.76
  19. Hello, I think your website might be having browser compatibility issues. When I look at your website in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, amazing blog!
    cbd oil that works 20202020-06-29 05:25 回复 Linux | Firefox浏览器 59.0
  20. Very quickly this website will be famous among all blogging and site-building viewers, due to it's good content
    cbd oil that works 20202020-06-27 17:41 回复 Linux | Chrome 64.0.3282.186
  21. Remarkable things here. I'm very satisfied to see your article. Thank you so much and I'm taking a look ahead to contact you. Will you please drop me a mail?
    tinyurl.com2020-06-27 00:21 回复 Linux | Chrome 65.0.3325.181
  22. I need to to thank you for this very good read!! I definitely loved every bit of it. I have you book-marked to look at new stuff you post…
    g rsacwgxy2020-06-22 16:49 回复 Linux | 未知浏览器