Ubuntu 16.04/CentOS 6.9安装Apache压力(并发)测试工具ab
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 16.04/CentOS 6.9安装Apache压力(并发)测试工具ab
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
說明:
ab工具已經在Apache中包含,如果不想安裝Apache,那么可以使用下面方法單獨安裝。
安裝:
Ubuntu:
sudo apt-get install apache2-utilsCentOS:
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個并發請求壓力測試結果。
?
==>如有問題,請聯系我:easonjim#163.com,或者下方發表評論。<==總結
以上是生活随笔為你收集整理的Ubuntu 16.04/CentOS 6.9安装Apache压力(并发)测试工具ab的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: React开发(269):事件的绑定-a
- 下一篇: 安卓11及以上adb命令将冰箱设置为设备