美文网首页
Siege安装

Siege安装

作者: IT的咸鱼 | 来源:发表于2019-05-07 17:16 被阅读0次

    官方网站:http://www.joedog.org/

    简介

    Siege是一款高性能的Http压力测试工具。
    Siege支持身份验证、cookies、http、https和ftp协议。

    安装

    下载地址:http://download.joedog.org/siege/
    这里使用的是最新版的。

    也可以右键复制链接地址,使用命令:
    wget http://download.joedog.org/siege/siege-4.0.4.tar.gz
    本人选择的是4.0.4版本的

    解压

    tar -xvf siege-4.0.4.tar.gz
    得到的具体版本就是siege-4.0.4

    执行以下操作:
    cd siege-4.0.4/
    ./configure
    make
    sudo make install

    使用siege来查看是否真的安装成功了
    siege

    如果看到如下信息,则说明安装成功了:
    这些都是命令参数

    SIEGE 4.0.4
    Usage: siege [options]
           siege [options] URL
           siege -g URL
    Options:
      -V, --version             VERSION, prints the version number.
      -h, --help                HELP, prints this section.
      -C, --config              CONFIGURATION, show the current config.
      -v, --verbose             VERBOSE, prints notification to screen.
      -q, --quiet               QUIET turns verbose off and suppresses output.
      -g, --get                 GET, pull down HTTP headers and display the
                                transaction. Great for application debugging.
      -p, --print               PRINT, like GET only it prints the entire page.
      -c, --concurrent=NUM      CONCURRENT users, default is 10
      -r, --reps=NUM            REPS, number of times to run the test.
      -t, --time=NUMm           TIMED testing where "m" is modifier S, M, or H
                                ex: --time=1H, one hour test.
      -d, --delay=NUM           Time DELAY, random delay before each requst
      -b, --benchmark           BENCHMARK: no delays between requests.
      -i, --internet            INTERNET user simulation, hits URLs randomly.
      -f, --file=FILE           FILE, select a specific URLS FILE.
      -R, --rc=FILE             RC, specify an siegerc file
      -l, --log[=FILE]          LOG to FILE. If FILE is not specified, the
                                default is used: PREFIX/var/siege.log
      -m, --mark="text"         MARK, mark the log file with a string.
                                between .001 and NUM. (NOT COUNTED IN STATS)
      -H, --header="text"       Add a header to request (can be many)
      -A, --user-agent="text"   Sets User-Agent in request
      -T, --content-type="text" Sets Content-Type in request
          --no-parser           NO PARSER, turn off the HTML page parser
          --no-follow           NO FOLLOW, do not follow HTTP redirects
    
    Copyright (C) 2017 by Jeffrey Fulmer, et al.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.
    

    相关文章

      网友评论

          本文标题:Siege安装

          本文链接:https://www.haomeiwen.com/subject/qslyoqtx.html