我的rails应用程序运行在瘦服务器上,我希望使用apachebench对其进行基准测试
我使用的命令是
ab -n 1 -c 1 http://localhost:3001/welcome/search?query="doctor"&rad=5
但是瘦服务器并没有使用这个url.Its
!! Invalid Request
谁能帮助我如何给出网址,使瘦接受的网址与查询字符串
发布于 2011-05-03 02:33:26
apache基准测试不会从url中解析出"localhost“。将其更改为0.0.0.0或127.0.0.1,并引用整个url,以避免与与符号有关的问题。例如:
ab -n 1 -c 1 "http://0.0.0.0:3001/welcome/search?query=doctor&rad=5"
发布于 2010-05-09 20:51:19
您的查询字符串编码不正确。删除双引号。如果需要,你需要像这样发送,
ab -n 1 -c 1 http://localhost:3001/welcome/search?query=%22doctor%22&rad=5
https://stackoverflow.com/questions/2797561
复制相似问题