新客网WWW.XKER.COM:致力做中国最专业的网络学院!
学院: 操作系统 - 网络应用 - 服务器 - 网络安全 - 工具软件 - 办公软件 - Web开发 - 数据库 - 网页设计 - 图形图像 - 媒体动画 - 硬件学堂 - 存储频道 - QQ专区
您的位置:首页 > 网络学院 > 操作系统 > Linux教程 > 正文:新手学堂:Linux操作系统下的多线程下载

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

新客网 XKER.COM 2008-02-19 来源:赛迪网 korn 收藏本文

迅雷外部出口带宽为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手册,会有很多收获哦。

收藏】 【评论】 【推荐】 【投稿】 【打印】 【关闭
发表评论
要记得去论坛讨论,点击注册新会员匿名评论
评论内容:不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
阅读排行
随机推荐
实用信息推荐