linux下多线程下载工具prozilla

Prozilla,linux下的多线程下载工具,相当于windows下的迅雷,可以支持断点续传。
 
下载地址
wget  ftp://ftp.mgts.by/pub/FreeBSD/ports/distfiles/prozilla-2.0.4.tar.bz2
 
 
[root@server src]# mkdir /usr/local/prozilla
[root@server src]# tar -xjvf prozilla-2.0.4.tar.bz2
[root@server src]# cd prozilla-2.0.4
[root@server prozilla-2.0.4]# ./configure --prefix=/usr/local/prozilla/
[root@server prozilla-2.0.4]# make && make install
 
 出现错误
download_win.h:55: error: extra qualification ‘DL_Window::’ on member ‘print_status’
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/usr/local/src/prozilla-2.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/prozilla-2.0.4'
make: *** [all] Error 2
 
重新编译安装
make clean
 
[root@server prozilla-2.0.4]# vi src/download_win.h
 按照错误提示修改第55行
55           void DL_Window::print_status(download_t * download, int quiet_mode);
改为void print_status(download_t * download, int quiet_mode);
[root@server prozilla-2.0.4]# ./configure --prefix=/usr/local/prozilla/
[root@server prozilla-2.0.4]# make && make install
 
 
[root@server prozilla-2.0.4]# / usr/local/prozilla/bin/proz --help|less
 
 两个常用参数
 
-r, --resume       Resume an interrupted download
 
-k=n               Use n connections instead of the default(4) #默认使用4线程
 
PATH="$PATH":/usr/local/ifstat/bin:/usr/local/nginx/sbin:/usr/local/mysql/bin:/usr/local/php5/sbin:/usr/local/php5/bin: /usr/local/prozilla/bin
 
 
 
 
/usr/local/prozilla/bin/proz -k 8 ftp://ftp.mgts.by/pub/FreeBSD/ports/distfiles/prozilla-2.0.4.tar.bz2
#指定使用8线程下载
 
下载界面:
Connection Server                     Status              Received
    1        ftp.mgts.by               Remote Fatal           0.0K of 91.0K
    2        ftp.mgts.by               Logging in             0.0K of 91.0K
    3        ftp.mgts.by               Remote Fatal           0.0K of 91.0K
    4        ftp.mgts.by               Remote Fatal           0.0K of 91.0K
    5        ftp.mgts.by               Remote Fatal           0.0K of 91.0K
    6        ftp.mgts.by               Remote Fatal           0.0K of 91.0K
    7        ftp.mgts.by               Remote Fatal           0.0K of 91.0K
    8        ftp.mgts.by               Remote Fatal           0.0K of 91.0K
 
 
 ftp://ftp.mgts.by/pub/FreeBSD/ports/distfiles/prozilla-2.0.4.tar.bz2
 
 File Size = 727K
 
 Total Bytes received 0 Kb (0.00%)
 Current speed = 0.00Kb/s, Average D/L speed = 0.00Kb/s
 
 
/usr/local/prozilla/bin/proz -r ftp://ftp.mgts.by/pub/FreeBSD/ports/distfiles/prozilla-2.0.4.tar.bz2
 
#续传断点的下载
Previous download of prozilla-2.0.4.tar.bz2 exists, would you like to (R)esume it or (O)verwrite it?
本文出自 “ 菜菜光的博客” 博客,请务必保留此出处 http://1662935.blog.51cto.com/1652935/533284

你可能感兴趣的:(多线程,linux,下载工具,prozilla)