Centos安裝webbench

來源:互聯網
上載者:User

    webbench最多可以類比3萬個並發串連去測試網站的負載能力,個人感覺要比Apache內建的ab壓力測試工具好,安裝使用也特別方便。

  1、適用系統:Linux

  2、編譯安裝:

引用wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install

  3、使用:

引用webbench -c 500 -t 30 http://127.0.0.1/test.jpg

  參數說明:-c表示並發數,-t表示時間(秒)

  4、測試結果樣本:

引用Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://127.0.0.1/test.jpg
500 clients, running 30 sec.

Speed=3230 pages/min, 11614212 bytes/sec.
Requests: 1615 susceed, 0 failed.

centos 下安裝會遇到問題:

1. make 時報錯

 在安裝編譯webbench的時候,

出現如下錯誤資訊 ctags *.c/bin/sh: ctags: command not foundmake: [tags] Error 127 (ignored) 意思是說缺少ctags命令,我沒有裝了,

運行以下命令即可yum install ctags

2. make install 時報錯

[root@ip-10-146-21-171 webbench-1.5]# make install
install -s webbench /usr/local/bin
install -m 644 webbench.1 /usr/local/man/man1
install: cannot create regular file `/usr/local/man/man1': No such file or directory
make: *** [install] Error 1

直接執行  mkdir -p /usr/local/man/man1  即可

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.