mwget 多线程版本wget下载工具
<p>linux运维在操作linux过程中,用得最多的linux下载工具想必一定是wget,没有看到哪一台服务器没装过wget的,或许有人使用ftp下载,也有人使用多线程的axel以及ProZilla,毫无疑问这两个工具都非常的出色,但是对于习惯使用wget的人来说显得不适应,于是老外便开发了多线程版本的wget工具mwget,m表示multi多线程的意思.</p><h3>安装mwget</h3>
<p>官方地址:http://sourceforge.net/projects/kmphpfm/?source=dlp</p><pre class="brush:bash;toolbar:false"># cd /usr/local/src/
# wget http://jaist.dl.sourceforge.net/project/kmphpfm/mwget/0.1/mwget_0.1.0.orig.tar.bz2
# tar -xjvf mwget_0.1.0.orig.tar.bz2
# cd mwget_0.1.0.orig
# ./configure
# make
# make install</pre><p>configure过程中如果出现如下错误,请安装大于等于0.35版本的intltool</p><pre class="brush:bash;toolbar:false">checking for intltool >= 0.35.0... ./configure: line 6824: intltool-update: command not found
found
configure: error: Your intltool is too old. You need intltool 0.35.0 or later.
# yum install intltool</pre><p>wget<strong> vs</strong> mwget速度测试<br>
以下使用下载2.4.5版本的mongodb来取样.</p>
<p>2.1 mwget速度测试</p><pre class="brush:bash;toolbar:false"># mwget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.5.tgz
Begin to download: mongodb-linux-x86_64-2.4.5.tgz
FileSize: 90M
36% [====> =====> ===> ====> ] [ 33M] </pre><p>mwget速度截图如下:</p>
<div id="attachment_2372" class="wp-caption alignnone"><img src="https://zhuji.jb51.net/uploads/img/20230517/5d3b6cdaae332091b2edbfa8967be0d6.jpg" width="657" height="74"><p class="wp-caption-text">mwget多线程下载速度</p>
</div>
<p>2.2 wget速度测试</p><pre class="brush:bash;toolbar:false"># wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.5.tgz
--2013-08-16 10:55:23-- http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.5.tgz
Resolving fastdl.mongodb.org... 54.230.114.206, 54.230.113.36, 54.230.114.144, ...
Connecting to fastdl.mongodb.org|54.230.114.206|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 94827295 (90M)
Saving to: “mongodb-linux-x86_64-2.4.5.tgz.1”
6% [==> ] 6,470,547 210K/s eta 6m 26s</pre><p>wget速度截图如下</p>
<div id="attachment_2373" class="wp-caption alignnone"><img src="https://zhuji.jb51.net/uploads/img/20230517/3fc679d274331eed18b5f494a0f1d801.jpg" width="650" height="155"><p class="wp-caption-text">wget单线程下载速度截图</p>
</div>
<h3>mwget用法:</h3>
<p></p><pre class="brush:bash;toolbar:false"># mwget -h
GNU MWget 0.1.0 ,a non-interactive and multiline network retriever of all POSTIX Systems.
Usage: mwget ... ...
Options:
-b, --debug Show the debug message
-c, --count=num Set the retry count to , no limit when "0", the default is "99"
-d, --directory=dir Set the local direcotry to , the default is "."
-f, --file=file Rename the file to
-h, --help A brief summary of all the options
-i, --interval=num Set the ftp retry interval to seconds, the default is "5"
-n, --number=num Use connections instead of the default (4)
-r, --referer=URL Include `Referer: ' header in HTTP request.
-t, --timeout=num Set the connection timeout to seconds, the default is "30"
-v, --version Show the version of the mwget and exit
-x, --proxy=URL Set the proxy
Mail bug reports and suggestions to <sa@kmlinux.tk><xiao_suo@hotmail.com>
On website bug reports and suggestions to <http://mwget.sourceforge.net/> <http://www.kmlinux.tk/>
We Welcome your BUG REPORT!</pre><p></p>
<h3>总结</h3>
<p>mwget虽然功能偏少,并且无法完全替代单线程版本的wget,但是对于我们基本只是用wget简单下载运维人员来说,mwget绝对是个完好的选择.</p>
頁:
[1]