首页 > 其他 > 详细

centos7安装使用siege进行压力测试

时间:2018-10-11 14:13:51      阅读:172      评论:0      收藏:0      [点我收藏+]
  • 下载:
    wget  http://download.joedog.org/siege/siege-4.0.4.tar.gz
  • 安装:
    tar  -xzf  siege-4.0.4.tar.gz
    cd  siege-4.0.4/
    ./configure
    make  &&  make  install
  • 用法:
    -c  200 指定并发数200
    -r  5 指定测试的次数5(默认:分钟)+s指定秒数
    -f  url.txt 指定url的文件
    -i  internet系统,随机发送url
    -b  请求无需等待 delay=0
    -t  5  持续测试5分钟
    #  -r和-t一般不同时使用
  • 示例:
    a. GET请求:
    siege  -c  1000  -t  2s  http://dollarphp.com/

    技术分享图片
    技术分享图片
    b. POST请求:

    siege  -c  1000  -t  2s  "http://dollarphp.com/  POST  name=lee&sex=male"

    技术分享图片
    技术分享图片

  • centos7安装使用siege进行压力测试

    原文:http://blog.51cto.com/12173069/2298507

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
    © 2014 bubuko.com 版权所有
    打开技术之扣,分享程序人生!