linux下多線程下載工具prozilla

Prozilla,linux下的多線程下載工具,相當於windows下的迅雷,可以支持斷點續傳。
 
下載地址
 
 
[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
 
 
 
 
#指定使用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
 
 
 
#續傳斷點的下載
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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章