zoukankan      html  css  js  c++  java
  • [原创]Linux下压力测试工具Webbench介绍

    [原创]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

  • 相关阅读:
    mysql报错:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
    MD5登陆密码的生成
    15. 3Sum、16. 3Sum Closest和18. 4Sum
    11. Container With Most Water
    8. String to Integer (atoi)
    6. ZigZag Conversion
    5. Longest Palindromic Substring
    几种非线性激活函数介绍
    AI初探1
    AI初探
  • 原文地址:https://www.cnblogs.com/mayingbao/p/377462.html
Copyright © 2011-2022 走看看