歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux基礎知識 >> Linux操作系統下的多線程下載

Linux操作系統下的多線程下載

日期:2017/3/2 14:47:25   编辑:Linux基礎知識
迅雷外部出口帶寬為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手冊,會有很多收獲哦。
 

Copyright © Linux教程網 All Rights Reserved