duaevb1511 2012-09-27 09:04
浏览 42

too long

I want testing my site load (site is write on php) via apache bench.

I have local server (xampp), OC: windows.

In directory apache/bench there is file ab.exe, this means that apachebench is installed in my local server yes?

I have local site localhost/my_test, I want simulate concurrent 1000 request on this site, in CMD I write this command:

ab -c 1000 localhost/my_test

answer from CMD is: 'ab' is not recognized as an internal or external command, operable program or batch file.

Tell please, where I wrong?

  • 写回答

3条回答 默认 最新

  • douhuan1979 2013-05-13 14:31
    关注

    AB needs a complete URL: Usage: ab [options] [http://]hostname[:port]/path

    So, in your case the URL should look like: localhost/my_test/

    It needs the path - which in this case is simply the /

    Hope this helps

    Paul.

    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?