apache Beanch (ab)压力测试工具的安装和使用

2019-12-25  本文已影响0人  hk_faith

cenos安装

yum -y install httpd-tools
ab -V # 确认安装成功

ubuntu安装

sudo apt-get install apache2-utils
ab -V # 确认安装成功

mac 自带

apachectl -V
ab -V

基本使用

ab -n 1000 -c 100 https://www.baidu.com/
ab -n 1000 -c 10 -B 127.0.0.1 https://www.123.com/
ab -n 50 -c 10 -B 127.0.0.1 https://www.123.com/

参考:
https://www.apachelounge.com/download/
ab 文档
http://httpd.apache.org/docs/2.2/programs/ab.html
csdn博客

上一篇 下一篇

猜你喜欢

热点阅读