说明:

ab工具已经在Apache中包含,如果不想安装Apache,那么可以使用下面方法单独安装。

安装:

Ubuntu:

sudo apt-get install apache2-utils  

CentOS:

sudo yum -y install httpd-tools

官网:

http://httpd.apache.org/(Apache服务器)

http://httpd.apache.org/docs/2.0/programs/(Apache工具文档大全)

http://httpd.apache.org/docs/2.0/programs/ab.html(文档教程)

http://httpd.apache.org/docs/current/programs/ab.html(文档教程)

简单使用:

运行

ab -n 100 -c 10 http://www.baidu.com/
#注意网址最后要带斜杠

对http://www.baidu.com/进行100次请求,10个并发请求压力测试结果。

最新文章

  1. Json to JObject转换的使用方法
  2. Async and Await 异步和等待
  3. [HDOJ5451]Best Solver(乱搞)
  4. C#学习笔记--详解委托,事件与回调函数
  5. 在IntelliJ IDEA14中安装go语言插件
  6. java 反射技术
  7. android 访问SMS短信收件箱
  8. (转载)PHP源代码分析- tick(s)
  9. Spring+Spring MVC+MyBatis
  10. [ZJOI2005]九数码游戏
  11. [Shoi2007]Vote 善意的投票
  12. Input子系统与多点触摸技术-3【转】
  13. Git bash命令
  14. ThreadPoolExecutor源码解析(二)
  15. 添加依赖:https://mvnrepository.com/
  16. LeetCode刷题 fIRST MISSING POSITIVE
  17. Unity 3D光源-Spot Light聚光灯用法详解、模拟手电筒、台灯等线性教程
  18. mysql备份学习笔记及xtrabackup安装
  19. Python3 命令行参数
  20. JIRA python篇之统计产品尚未解决的bugs

热门文章

  1. linux 出错 “INFO: task xxxxxx: 634 blocked for more than 120 seconds.”的3种解决方案(转)
  2. JavaWeb笔记(十一)Maven
  3. android 在自定义的listview(有刷新加载项)列表中,数据过少时不能铺满整个屏幕时,header和footer同时显示问题
  4. Java 冒泡排序与快速排序的实现
  5. HDU 1709 母函数天平问题 可出现减法的情况 The Balance
  6. Codeforces Round #359 (Div. 2) A
  7. 乌班图 root权限获取
  8. SpringMVC+MyBatis+Shiro 配置文件详解
  9. poj2728 最小比率生成树——01分数规划
  10. 行为型设计模式之解释器模式(Interpreter)