惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
Attack and Defense Labs
Attack and Defense Labs
V2EX - 技术
V2EX - 技术
O
OpenAI News
S
Secure Thoughts
H
Heimdal Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Schneier on Security
Schneier on Security
H
Hacker News: Front Page
S
Security Affairs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
The Register - Security
The Register - Security
GbyAI
GbyAI
Cloudbric
Cloudbric
MongoDB | Blog
MongoDB | Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
Forbes - Security
Forbes - Security
Y
Y Combinator Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Scott Helme
Scott Helme
Hacker News - Newest:
Hacker News - Newest: "LLM"
The Cloudflare Blog
Recorded Future
Recorded Future
人人都是产品经理
人人都是产品经理
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
Webroot Blog
Webroot Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog
T
Tor Project blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
Hacker News: Ask HN
Hacker News: Ask HN
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
I
Intezer
V
V2EX
T
Tailwind CSS Blog
SecWiki News
SecWiki News
NISL@THU
NISL@THU
C
Check Point Blog

Rat's Blog - Apache

Apache环境强制http 301跳转https的方法 - Rat's Blog CentOS 6系统Apache环境配置SSL证书教程 - Rat's Blog Linux VPS下Nginx与Apache环境防盗链设置方法 - Rat's Blog apache端口被异常占用导致无法启动的解决方法 - Rat's Blog
Linux VPS使用Webbench/Apache-ab进行网站压力测试 - Rat's Blog
博主: Rat's · 2018-04-28 · via Rat's Blog - Apache

简介

Webbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试网站在压力下工作的性能,最多可以模拟3万个并发连接去测试网站的负载能力。

Apache abApache Bench性能测试工具,这是apache免费自带的性能测试工具,就在apachebin目录下,它能模拟多个并发请求,也就是说它主要是用来测试你的网站每秒能处理多少请求的。

安装

如果是测试https的话,使用Apache-ab就可以了。

1、安装Webbench

#Debian/Ubuntu系统
apt-get install gcc make ctags -y
#Centos系统
yum install gcc make ctags -y

#安装Webbench
wget https://www.moerats.com/usr/down/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz && cd webbench-1.5
make && make install

2、安装Apache

#Centos系统
yum install httpd -y
#Debian/Ubuntu系统
apt-get install apache2 -y

使用

1、Webbench

#使用帮助
webbench -h
#测试命令,-c为并发数;-t为测试时长,单位秒;后面为链接
webbench -c 1000 -t 50 http://www.baidu.com

2、Apache

#使用帮助
ab -h
#测试1,-n为发送请求次数;-c并发数;后面为链接
ab -n 500 -c 400 http://www.baidu.com
#测试2,-t为测试时长,单位秒;-c并发数;后面为链接
ab -t 90 -c 50 http://www.baidu.com

总结

WebbenchApache-ab的测试效果都还可以,只是Webbench不支持https网站,AB倒是可以,不过AB的并发数不能过大,好像需要改配置文件,默认最大1024,如果是用来CC攻击或者网站压力测试,建议找下载文件或者动态图片来试,尽量别做坏事。


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/606/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。