我运行ab -n 2000 -c 25 http://www.baidu.com时提示ab: invalid URL错误。请问如何解决?
ab -n 2000 -c 25 http://www.baidu.com
ab: invalid URL
ab命令格式为:ab [options] [http[s]://]hostname[:port]/path请注意后面/path
ab [options] [http[s]://]hostname[:port]/path
/path
所以正确的命令应该为:ab -n 2000 -c 25 http://www.baidu.com/请注意后面的/号
ab -n 2000 -c 25 http://www.baidu.com/
/
©2017 神猿问答版权所有© 京ICP备16050413号-2