windows系统下ab工具的下载,安装与使用

ab下载网址:https://www.apachehaus.com/cgi-bin/download.plx

使用pythohn执行命令行命令并获取输出:

ab=os.popen(r'D:\ProgramFiles\ab\Apache24\bin\ab -n 100 -c 30 http://192.168.26.213/')
print(ab.read())

#D:\ProgramFiles\ab\Apache24\bin\:  是自己电脑ab所在的安装路径;

#http://192.168.26.213/:   是使用ab进行访问的站点

具体popen使用方法详见:https://blog.csdn.net/Al_assad/article/details/79157259

https://blog.csdn.net/stone8761/article/details/77498439

发布了84 篇原创文章 · 获赞 46 · 访问量 20万+

猜你喜欢

转载自blog.csdn.net/gufenchen/article/details/100113427