axel, yum安裝或者apt-get安裝
但有時axel不行,需要上wget,但單線程的太慢,需要安裝mwget。
apt-get -y install intltool
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
mwget比wget速度,實測提升了至少4倍。因為缺省是4個線程,所以快了4倍。
選項是:
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]
寫了個wget.sh,內容如下:
#!/bin/bash
if ! axel $*;then
mwget -n 8 $*
fi
用axel下載東西時,容易出現 Too many redirects. 的錯誤,這時候可以改用wget或者mwget。mwget沒有下載完,退出,重新執行一次,就能斷點續傳了。