大漠駝鈴

          置身浩瀚的沙漠,方向最為重要,希望此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 | 喜歡研究的人類
          主站蜘蛛池模板: 龙游县| 平原县| 江孜县| 枝江市| 多伦县| 清水县| 上杭县| 海南省| 武功县| 武宁县| 大埔县| 理塘县| 美姑县| 宝兴县| 陆川县| 邵东县| 龙陵县| 茶陵县| 上林县| 松滋市| 江孜县| 新兴县| 湘乡市| 汤原县| 红桥区| 合川市| 永康市| 南陵县| 略阳县| 石门县| 高密市| 南投市| 浦县| 富川| 杨浦区| 治县。| 威信县| 黄陵县| 凤城市| 万载县| 龙南县|