网站首页 Cn029.Com - 西安网吧在线℡

Cn029.Com - 西安网吧在线℡ 西北地区网吧行业门户站点www.cn029.com,本站为您提供网吧维护,每日更新最新网吧技术,政策法规.为您提供各类网管软件,网吧软件,游戏更新软件,承接西部地区网吧维护,希望与您共同讨论网吧经营管理的经验!

投递文章  投稿指南 RSS订阅 西安网吧在线通告:
搜索: 您的位置西安网吧在线Linux-Ux新手入门 → 文章内容

新手学堂:Linux操作系统下的多线程下载

  作者:korn   来源:赛迪网   更新时间:2008-6-21 22:10:41   【 】  评论:0

迅雷外部出口带宽为100M,但是每次在linux下用wget感觉速度还是比较慢,关键是wget不支持多线程。

而在windows下用迅雷下载好后传到linux里面又麻烦,有没有linux命令行下的多线程下载工具呢?答案是有的。

lftp就是这样一个工具,可以这样来使用

[root@AS5 ~]# lftp -c "pget -n 10 http://downloads.sourceforge.net/kvm/kvm-17.tar.gz"

这样就指定线程为10个(pget -n 10),并且断点续传(-c)。

[root@AS5 ~]# lftp -v

LFTP | Version 3.5.1 | Copyright (c) 1996-2006 Alexander V. Lukyanov

LFTP is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

There is absolutely no warranty for LFTP. See COPYING for details.

Send bug reports and questions to .

Libraries used: Readline 5.1

可以看看它的 man 文档,说明如下:

############################pget [OPTS] rfile [-o lfile]Gets the specified file using several connections. This can speed up transfer,but loads the net and server heavily impacting other users. Use only if you really have to transfer the file ASAP. Options:-c continue transfer. Requires lfile.lftp-pget-status file.-n maxconn set maximum number of connections (default is taken from pget:default-n setting)##############################

真的很不多,大家可以试试。多看看man手册,会有很多收获哦。

(责任编辑:云子)

Tags: 新手 下载  
责任编辑:Cn029.Com
  • 请文明参与讨论,禁止漫骂攻击。 用户名:新注册) 验证码: 验证码,看不清楚?请点击刷新验证码

    分 值:100分 85分 70分 55分 40分 25分 10分 0分

    评论总数:0条,平均得分:0[ 查看全部 ] 网友评论
    最新资讯
    关于我们 - 联系我们 - 广告服务 - 法律声明 - RSS订阅 - 网站地图 - 返回顶部