日期:2014-05-16  浏览次数:20710 次

linux 命令行 多线程下载工具Myget

因要从远程服务器上拉个100G的文件过来,昨天使用ftp拉,结果不小心关机,拉了一半没了。今天重拉就想是否有多线程下载工具,找了下,发现Myget还是非常好用的工具。

?

http://myget.sourceforge.net

?

下载完成后

?

tar -xzvf myget-0.1.2.tar.gz
./configuare
/make&&make install

?

使用比较简单,帮助如下:

mytget -n 10 ftp://user:passwd@192.168.10.11/game.rar

如不需要用户密码则跟普通的ftp一样
?

Mytget 0.1.1: A download accelerator for GNU/Linux
Usage: mytget [options]... [URL]...
Options:
  -b,  --debug          Show the debug message
  -c,  --count=num      Set the retry count to [num], no limit when "0", the default is "99"
  -d,  --directory=dir  Set the local direcotry to [dir], the default is "."
  -f,  --file=file      Rename the file to [file]
  -h,  --help           A brief summary of all the options
  -i,  --interval=num   Set the ftp retry interval to [num] seconds, the default is "5"
  -n,  --number=num     Use [num] connections instead of the default (4)
  -r,  --referer=URL    Include `Referer: [URL]' header in HTTP request.
  -t,  --timeout=num    Set the connection timeout to [num] seconds, the default is "30"
  -v,  --version        Show the version of the myget and exit
  -x,  --proxy=URL      Set the proxy [URL]

?以使用5线程下载一个http文件为例:

?

mytget - n 5 http://dl_dir.qq.com/shut.exe

?

?注意使用是mytget,ftp下载示例:

?

mytget -n 5?ftp://user:passwd@192.168.10.11/game.rar

?

?

?

?