zoukankan      html  css  js  c++  java
  • Axel与Wget下载工具

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

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

    # ( 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

  • 相关阅读:
    boost 1.49在vs 2005下编译的方法
    Mathematics for Computer Graphics
    字符串和字符数组长度
    四个月的学习心得
    话说stm32f10x-FSMC的配置与频率
    一些笔试题,大家都来围观呀~
    简单的生产者消费者-(windows下)
    STM32f10x下软件模拟IIc读写si5326问题
    usb枚举阶段(转载)
    STM32 GPIOB_PIN3复用功能小分析
  • 原文地址:https://www.cnblogs.com/wjoyxt/p/3832911.html
Copyright © 2011-2022 走看看