好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > 使ApacheBench支持multi-url的方法

使ApacheBench支持multi-url的方法

熱門標簽:陜西辦理400電話 地圖標注小程序 宿州外呼系統公司 信陽電銷外呼系統怎么樣 海外工廠地圖標注 株洲電銷 貴陽網絡外呼系統軟件 南充電銷外呼系統 南昌外呼系統定制

由于標準的ab只支持對單個uri進行壓測,不滿足實際需要,故做以下修改,使ab支持multi-url。

1、下載Apache httpd相關源碼包以及針對ab工具的patch包

wget https://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-1.6.5.tar.gz
wget https://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-util-1.6.1.tar.gz
wget https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.37.tar.gz
wget https://github.com/philipgloyne/apachebench-for-multi-url/archive/master.zip

注:httpd依賴于apr和apr-util

2、編譯安裝apr

tar -zxf apr-1.6.5.tar.gz
cd apr-1.6.5
./configure --prefix=/usr/local/apr
make && make install

3、編譯安裝apr-util

tar -zxf apr-util-1.6.1.tar.gz
cd apr-util-1.6.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install

4、替換httpd源碼里面的ab.c文件

unzip master.zip
tar -zxf httpd-2.4.37.tar.gz
\cp ./apachebench-for-multi-url-master/ab.c ./httpd-2.4.37/support/

5、編譯安裝httpd

cd httpd-2.4.37
./configure               \

  --with-apr=/usr/local/apr      \

  --with-apr-util=/usr/local/apr-util \

  --prefix=/usr/local/apache     \

  --sysconfdir=/etc/httpd24      \

  --enable-so             \

  --enable-ssl            \

  --enable-cgi            \

  --enable-rewrite          \

  --with-zlib             \

  --with-pcre             \

  --with-mpm=prefork         \

  --enable-modules=most        \

  --enable-mpms-shared=all 

make && make install

6、驗證結果

#/usr/local/apache/bin/ab -h
Usage: /usr/local/apache/bin/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)
  -L       Use URL list file name, eg. url.txt
  -Z ciphersuite Specify SSL/TLS cipher suite (See openssl ciphers)
  -f protocol   Specify SSL/TLS protocol (SSL2, SSL3, TLS1, or ALL)

可以看到ab已經支持-L參數(上面幫助信息的倒數第3行),大功告成。

到此這篇關于使ApacheBench支持multi-url的方法的文章就介紹到這了,更多相關ApacheBench支持multi-url內容請搜索腳本之家以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持腳本之家!

標簽:三明 拉薩 玉林 汕頭 晉城 鄭州 開封 石嘴山

巨人網絡通訊聲明:本文標題《使ApacheBench支持multi-url的方法》,本文關鍵詞  使,ApacheBench,支持,multi-url,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《使ApacheBench支持multi-url的方法》相關的同類信息!
  • 本頁收集關于使ApacheBench支持multi-url的方法的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 深夜无遮挡免费高清在线观看| 波多野结衣gvg厨房系列高清在线观看| 王爷啊慢点太深了h| 久久久国产色情无码A片爆乳直播 中文在线无码高潮潮喷小说视频 香港AA三级久久三级 | 亚洲国产精品视频| 乱小说推荐| 亚洲欧美AV无码国产金银花| 爱爱动态有声音图| 色吊丝国产| 欧美zzo交| 国产亚洲精品久久久久秋霞不卡| Xiuren – Chinese Beauties| 从头啪到尾全肉的男男文| 日本xxxx韩国护士| 午夜精品A片一二三区蜜臀| 群体交乱之放纵交换| 夫妇交换野外露营| 小鸟视频在线播放免费观看| 男男浴室吸乳play特殊军种| 狠狠色综合久色aⅴ一区站长工具 少妇高潮久久久久久精品一 | 在线免费色| 久久久免费观看| 亚洲一区综合在线播放| 五级床片免费观看视频| 在线精品国产一区二区| 亚洲xxx视频| 亚洲九九| 足鞋臭脚袜奴交小说h| 午夜成人福利网站| 日本免费乱理伦片在线观看2018| 啊灬啊别停灬用力啊老师黑人视频| 国产精品推女郎私拍在线| 国产一级视频久久| 好色艳妇小说| 村妇性放纵小说| 色哟哟?精品观看| 明星合成图Xiao7712论坛| 欧美AAAAAAA片免费看| 操女同学小说| 主播在线观看| 久久精品99久久香蕉国产浪潮|