ab压力测试 SSL not compiled in; no https support

xiaohai 2022-05-03 11:22:05 2053人围观 标签: Apache 
简介apache ab 压力测试 https 报 SSL not compiled in; no https support

ab是Apache超文本传输协议(HTTP)的性能测试工具。其设计意图是描绘当前所安装的Apache的执行性能,主要是显示你安装的Apache每秒可以处理多少个请求。

压力测试说明

1)测试场景:模拟10个用户,对百度首页发起总共100次请求

2)测试命令:ab -n 100 -c 10  http://www.baidu.com/

3)ab常用参数的介绍:

    -n :总共的请求执行数,缺省是1;

    -c: 并发数,缺省是1;

    -t:测试所进行的总时间,秒为单位,缺省50000s

    -p:POST时的数据文件

    -w: 以HTML表的格式输出结果 

但是对于https网站,会报如下错误:

SSL not compiled in; no https support

使用Apache自带的工具ab进行压力测试时出现了SSL not compiled in; no https support的错误。使用abs代替ab即可,如

abs -n 100 -c 10  http://www.baidu.com/