Linux下多线程下载工具推荐:myget

Linux下默认可以使用wget进行文件下载,但是该工具是单线程的,无法满足用户对于速度的追求。经过vpsdog试用,多线程下载工具myget非常好,本次介绍给大家。MyGet目标设计成一个可扩展的,拥有丰富界面的多线程下载工具,支持HTTP、FTP、HTTPS等协议。

下载安装操作如下:

  • wget http://myget.sourceforge.net/release/myget-0.1.2.tar.gz
  • tar zxvf myget-0.1.2.tar.gz
  • cd myget-0.1.2
  • ./configure 
  • make & make install

MyGet命令格式如下: #mytget [选项] [下载地址] 

  • 常用的选项: 
  • -d  [目录]:指定下载到的文件在本地存放的位置,默认当前目录。 
  • -f  [文件]:指定下载到本地后的新文件名称。 
  • -h  帮助选项。 
  • -n  [线程数]:下载线程数量,默认为4个。 
  • -x  [代理服务器地址]:设置代理服务器地址,如“-x [url]http://user:pass@host:port[/url]”。
  • -b  Show the debug message
  • -c  Set the retry count to [num], no limit when "0", the default is "99"
  • -i  Set the ftp retry interval to [num] seconds, the default is "5"
  • -r  Include `Referer: ' header in HTTP request.
  • -t  Set the connection timeout to [num] seconds, the default is "30"
  • -v  Show the version of the myget and exit
  • -x  Set the proxy [URL]

实例分析:

架设某个下载文件的地址是http://vpsdog.com/,那么使用mytget http://vpsdog.com/就会以默认4线程进行下载,而使用mytget -n 10 http://vpsdog.com/则会以10线程下载(实际下载速度取决于对方服务器可用带宽以及本机的下行带宽)

暂时没有人发言

我要发言