zhangqunshi

apache ab测试介绍

安装ab命令

环境为ubuntu16.04.2 LTS,安装的命令为:

sudo apt-get install apache2-utils

使用说明

格式为:ab [options] [http[s]://]hostname[:port]/path

参数比较多,可以通过ab --help来查看。举一个例子:

ab -n 100 -c 10 http://localhost:8080/hello

上面的命令是指对http://localhost:8080/hello这个url请求100次,其并发请求为10(每次同时发10个请求)。

@完

参考:http://blog.csdn.net/fdipzone/article/details/9090625

分类:

技术点:

相关文章:

  • 2021-12-07
  • 2021-09-04
  • 2021-09-04
  • 2021-09-04
  • 2021-11-20
  • 2021-11-04
  • 2021-11-09
  • 2021-12-19
猜你喜欢
  • 2021-06-20
  • 2021-12-03
  • 2021-09-04
  • 2021-09-04
  • 2021-06-08
  • 2021-03-29
  • 2021-05-26
相关资源
相似解决方案