大漠駝鈴

          置身浩瀚的沙漠,方向最為重要,希望此blog能向大漠駝鈴一樣,給我方向和指引。
          Java,Php,Shell,Python,服務器運維,大數據,SEO, 網站開發、運維,云服務技術支持,IM服務供應商, FreeSwitch搭建,技術支持等. 技術討論QQ群:428622099
          隨筆 - 238, 文章 - 3, 評論 - 117, 引用 - 0
          數據加載中……

          Centos Linux安裝Apache Benchmark, AB壓力測試工具

          國內網站上介紹的方式比較老了,不好使。
          下面是一種快速的方式。
          yum install httpd-tools
          安裝完成后運行AB工具試試,出現下面的內容表明安裝成功。

          ab: wrong number of arguments
          Usage: ab [options] [http[s]://]hostname[:port]/path
          Options are:
              -n requests     Number of requests to perform
              -c concurrency  Number of multiple requests to make
              -t timelimit    Seconds to max. wait for responses
              -b windowsize   Size of TCP send/receive buffer, in bytes
              -p postfile     File containing data to POST. Remember also to set -T
              -u putfile      File containing data to PUT. Remember also to set -T
              -T content-type Content-type header for POSTing, eg.
                              'application/x-www-form-urlencoded'
                              Default is 'text/plain'
              -v verbosity    How much troubleshooting info to print
              -w              Print out results in HTML tables
              -i              Use HEAD instead of GET
              -x attributes   String to insert as table attributes
              -y attributes   String to insert as tr attributes
              -z attributes   String to insert as td or th attributes
              -C attribute    Add cookie, eg. 'Apache=1234. (repeatable)
              -H attribute    Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
                              Inserted after all normal header lines. (repeatable)
              -A attribute    Add Basic WWW Authentication, the attributes
                              are a colon separated username and password.
              -P attribute    Add Basic Proxy Authentication, the attributes
                              are a colon separated username and password.
              -X proxy:port   Proxyserver and port number to use
              -V              Print version number and exit
              -k              Use HTTP KeepAlive feature
              -d              Do not show percentiles served table.
              -S              Do not show confidence estimators and warnings.
              -g filename     Output collected data to gnuplot format file.
              -e filename     Output CSV file with percentages served
              -r              Don't exit on socket receive errors.
              -h              Display usage information (this message)
              -Z ciphersuite  Specify SSL/TLS cipher suite (See openssl ciphers)
              -f protocol     Specify SSL/TLS protocol (SSL2, SSL3, TLS1, or ALL)

          posted on 2014-07-12 08:39 草原上的駱駝 閱讀(10031) 評論(1)  編輯  收藏 所屬分類: Linux

          評論

          # re: Centos Linux安裝Apache Benchmark, AB壓力測試工具  回復  更多評論   

          以前在這個網站看過類似的介紹
          http://www.duanmeiwen.com/
          不過現在改版了,謝謝樓主再提供!
          2014-08-04 17:13 | 喜歡研究的人類
          主站蜘蛛池模板: 呼玛县| 铜川市| 乌兰浩特市| 芮城县| 潮安县| 南安市| 芷江| 榕江县| 梨树县| 那坡县| 金坛市| 五华县| 错那县| 霸州市| 上栗县| 三台县| 尼木县| 都兰县| 曲阳县| 定州市| 桃源县| 海南省| 乐平市| 调兵山市| 宜都市| 樟树市| 嘉兴市| 建平县| 湘西| 通山县| 界首市| 汽车| 蒲城县| 株洲市| 黔南| 平远县| 麦盖提县| 鹰潭市| 卓尼县| 乌兰浩特市| 栾城县|