linux 安装webbench
webbench :1.5 http://soft.vpser.net/test/webbench/webbench-1.5.tar.gz
从官网下载webbench-1.5.tar.gz
1.解压 tar -zxvf webbench-1.5.tar.gz
2. cd webbench-1.5
3.make
cc -Wall -ggdb -W -O -c -o webbench.o webbench.c
webbench.c: In function ‘alarm_handler’:
webbench.c:77: warning: unused parameter ‘signal’
cc -Wall -ggdb -W -O -o webbench webbench.o
ctags *.c
/bin/sh: ctags: command not found
make: [tags] Error 127 (ignored)
此处错误是没有ctags这个包,然后安装此包
4.rpm -ivh ctags-5.8-2.el6.x86_64.rpm
warning: ctags-5.8-2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:ctags ########################################### [100%]
5.再次make 没有错误
6.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 -m 644 -p /usr/local/man/man1
7.再次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
正常
8.简单测试
webbench -c 500 -t 30 http://www.baidu.com
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://www.baidu.com
500 clients, running 30 sec.
Speed=10112 pages/min, 26296 bytes/sec.
Requests: 5056 susceed, 0 failed.
完成
最新文章
- 【Avalon】escape
- 解决Download interrupted: Connection to https://dl-ssl.google.com refused的问题
- 【转】增加eclipse的运行内存 -- 不错!!
- Keil C51 知识点
- 理解ROS话题
- Centos6.5下一个Ceph存储集群结构
- svn checkout操作
- 添加<;!doctype html>;后造成JS写的定位失效
- linux 中的搜索命令
- Struts2-文件上传下载
- 拾遗与填坑《深度探索C++对象模型》3.2节
- Spark之Yarn提交模式
- EECS 649 Introduction to Artificial Intelligence
- type-of-python作业-判断字符串是否属于回文需要忽略其中的标点、空格与大小写
- 浙江省赛之Singing Everywhere
- Symantec Backup Exec Agent 推送错误Error connecting to the remote computer. Ensure that the computer is available, has WMI enabled and is not blocked by a firewall
- 探究如何永久更改Maven的Dynamic Web Project版本及pom.xml默认配置
- 苹果手机上点击WEUI日期控件不容易点中
- 【shell】两种字符串提取场景的实现
- Openstack-Namespaces