# 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
configure过程中如果出现如下错误,请安装大于等于0.35版本的intltool
复制代码
代码如下:
checking for intltool >= 0.35.0… ./configure: line 6824: intltool-update: command not found foundconfigure: error: Your intltool is too old. You need intltool 0.35.0 or later.# yum install intltool
wget vs mwget速度测试以下使用下载2.4.5版本的mongodb来取样.mwget速度测试
# mwget -hGNU MWget 0.1.0 ,a non-interactive and multiline network retriever of all POSTIX Systems.Usage: mwget [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 mwget and exit -x, –proxy=URL Set the proxy [URL]
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!
Axel 运维工作中,常常需要下载文件,因为网站下载速度限制或者网络等原因导致下载让人无法忍受,前面有介绍多线程wget工具mwget,提速不少,而且使用很简单。axel使用的人更多,不仅仅安装方法简单,命令更简单。往下看。安装AxelRPM安装Axel(方法一)下载地址:http://pkgs.repoforge.org/axel/如图,选择适合你服务器的RPM
root@ttlsa # axel -hUsage: axel [options] url1 [url2] [url…]
–max-speed=x -s x 最大速度 (字节/秒)–num-connections=x -n x 最大连接数–output=f -o f 指定文件名–search[=x] -S [x] Search for mirrors and download from x servers–header=x -H x 添加header–user-agent=x -U x 设置用户代理–no-proxy -N 不使用任何代理–quiet -q Leave stdout alone–verbose -v 显示更多状态信息–alternate -a 显示简单进度条–help -h 帮助–version -V 版本信息axel使用实例下载centos