[原創]Linux下壓力測試工具Webbench介紹

來源:互聯網
上載者:User
[原創]Linux下壓力測試工具Webbench介紹

 

1 安裝操作步驟:

#tar zxvf webbench-1.5.tar.gz
#cd webbench-1.5
#make && make install

  

[root@localhost ~]# tar -zxvf
webbench-1.5.tar.gz

顯示如下資訊:

webbench-1.5/

webbench-1.5/webbench.1

webbench-1.5/socket.c

webbench-1.5/webbench.c

webbench-1.5/Makefile

webbench-1.5/debian/

webbench-1.5/debian/rules

webbench-1.5/debian/dirs

webbench-1.5/debian/copyright

webbench-1.5/debian/control

webbench-1.5/debian/changelog

webbench-1.5/COPYRIGHT

webbench-1.5/ChangeLog

 

[root@localhost ~]# cd webbench-1.5

[root@localhost webbench-1.5]# make
&& make install

顯示如下資訊:

install -s webbench /usr/local/bin

install -m 644 webbench.1
/usr/local/man/man1

install -d /usr/local/share/doc/webbench

install -m 644 debian/copyright
/usr/local/share/doc/webbench

install -m 644 debian/changelog
/usr/local/share/doc/webbench

 

2 Webbench工具使用介紹

[root@localhost webbench-1.5]# webbench
-c 5 -t 30 http://mayingbao.cnblogs.com/

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

 

顯示如下資訊:

Webbench - Simple Web Benchmark 1.5

Copyright (c) Radim Kolar 1997-2004, GPL
Open Source Software.

 

Benchmarking: GET http://mayingbao.cnblogs.com/

5 clients, running 30 sec.

 

Speed=586 pages/min, 892851 bytes/sec.

Requests: 293 susceed, 0 failed.

 

 

3 Webbench安裝使用常見問題解決

 

問題1: cannot create regular file
`/usr/local/man/man1′: No such file or directory

解決方案: 建立/usr/local/man/man1檔案來解決

[root@localhost local]# mkdir -m 644 -p
/usr/local/man/man1

 

 

問題2: /bin/sh: ctags:
command not found

解決方案:安裝ctags

apt-get install ctags

 

問題3: cc: Command not
found

解決方案: 安裝gcc

apt-get install gcc

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.