天天看点

wget下载工具

wget下载工具

http://myget.sourceforge.net/release/myget-0.1.2.tar.gz

下载后使用如下命令安装:

#tar jxvf myget-0.1.0.tar.bz2

#cd myget-0.1.0

#./configure --prefix=/usr/local/myget

#make

#make install

# /usr/local/myget/bin/mytget -d /root/

也可

# cp /usr/local/myget/bin/mytget /root/mytget

# /root/mytget http://myget.sourceforge.net/release/myget-0.1.2.tar.gz

MyGet命令格式如下: #mytget [选项] [下载地址]

常用的选项:

-d   [目录]:指定下载到的文件在本地存放的位置,默认当前目录。

-f   [文件]:指定下载到本地后的新文件名称。

-h   帮助选项。

-n   [线程数]:下载线程数量,默认为4个。

-x   [代理服务器地址]:设置代理服务器地址,如“-x [url]http://user:pass@host:port

[/url]”。

-b   Show the debug message

-c   Set the retry count to [num], no limit when "0", the default is "99"

-i   Set the ftp retry interval to [num] seconds, the default is "5"

-r   Include `Referer: ' header in HTTP request.

-t   Set the connection timeout to [num] seconds, the default is "30"

-v   Show the version of the myget and exit

-x   Set the proxy [URL]

[root@localhost myget-0.1.0]# mytget   -n 10   -x [url]http://192.168.0.5:8080 ; 

-d ./  http://..../myget-0.1.0.tar.bz2

Begin to download: myget-0.1.0.tar.bz2

Filesize: 222K

100%

[=================================================================================

=========] [228K] [5.6K/s] [ETA:00:-1]Download successfully in 00:11

下一篇: 下载工具类