如何在Apache Bench中发送多个查询字符串? [英] How to send more than one query string in Apache Bench?

查看:106
本文介绍了如何在Apache Bench中发送多个查询字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ab -n 1 -c 1 http://localhost:2020/welTo.do?pxtId = 3000007937& superDo = jack

ab -n 1 -c 1 http://localhost:2020/welTo.do?pxtId=3000007937&superDo=jack

我得到了第一个查询字符串的答案,但我也得到了

I got answer for first query string but i also get

'superDo'不被识别为内部或外部命令, 可操作的程序或批处理文件.

'superDo' is not recognized as an internal or external command, operable program or batch file.

请帮助我

TIA

问候 thiru

推荐答案

您可能只需要引用URL即可避免解释shell特殊字符.在这种情况下,您的&符号会导致在尝试作为命令运行superDo时在后台运行左侧的文本.

You probably just need to quote the URL to avoid shell special characters from being interpreted. In this case your & symbol is causing the text to the left to be run in the background while attempting to run superDo as a command.

 ab -n 1 -c 1 'http://localhost:2020/welTo.do?pxtId=3000007937&superDo=jack'

这篇关于如何在Apache Bench中发送多个查询字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆