打赏

星辰大海ゞ

That which does not kill us makes us stronger!

导航

Axel与Wget下载工具

# wget -q -O- https://pastebin.com/raw/ZULSSTtY

# curl -fsSL https://pastebin.com/raw/ZULSSTtY

 

# /bin/sh -c "(curl -fsSL https://pastebin.com/raw/izEJH5T9||wget -q -O- https://pastebin.com/raw/izEJH5T9)"|sh

# ( curl -fsSL https://pastebin.com/raw/ZULSSTtY || wget -q -O- https://pastebin.com/raw/ZULSSTtY ) | sh

-f/--fail              连接失败时不显示http错误
-s/--silent           静默模式,不输出任何东西
-S/--show-error  显示错误,在选项-s中,当curl出现错误时将显示
-L/--location       跟踪重定向

-------------------------------------------------------

Axel工具是linux下的http/ftp中强大下载工具,支持多线程和断点续传下载。且可以从多个地址或者从一个地址的多个连接来下载同一个文件。

常用的选项

[root@wjoyxt ~]# axel -h查看帮助信息

Usage: axel [options] url1 [url2] [url...]  格式

--max-speed=x  -s x Specify maximum speed (bytes per second)(指定每秒的最大下载速度)

--num-connections=x -n x Specify maximum number of connections(指定线程数)

--output=f  -o f Specify local output file(保存文件到其他目录)

--search[=x]  -S [x] Search for mirrors and download from x servers(指定不同镜像站下载文件)

--header=x  -H x Add header string(指定HTTP  头字串)

--user-agent=x  -U x Set user agent

--no-proxy  -N Just don't use any proxy server

--quiet  -q Leave stdout alone

--verbose  -v --alternate  -a Alternate progress indicator(用不刷屏的下载进度条)

--help  -h This information  查看帮助信息

--version  -V Version information查看版本信息。

 

wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el6.rf.x86_64.rpm 下载安装包。   wget -c 也支持断点续传功能

常用参数:

-n   指定线程数

-o   指定另存为目录

-q   静默模式

-P   下载到指定目录下,后面加目录名  (大写)

例如 :axel -n 10 -o /tmp/  http://soft.vpser.net/lnmp/lnmp0.7-full.tar.gz

 

posted on 2014-07-09 09:18  星辰大海ゞ  阅读(640)  评论(0编辑  收藏  举报