yum -y install httpd-tools #安装ab工具 ab -V 查看版本
使用for循环执行命令 #执行10次
#!/bin/bash
for i in {1..10}
do
ab -n 1000 -c 100 http://192.168.124.8:8080/block
done
yum -y install httpd-tools #安装ab工具 ab -V 查看版本
使用for循环执行命令 #执行10次
#!/bin/bash
for i in {1..10}
do
ab -n 1000 -c 100 http://192.168.124.8:8080/block
done