如何在 Windows7上安装 ApacheBench?

我想在 Windows 上安装 ApacheBench,谁能告诉我应该安装哪个 MSI?

我确实安装了一些微星,但它似乎已经安装了 Apache HTTP Server。

我只需要运行 Apache Bench,因为我正在测试一个 IIS asp.net 应用程序。

80822 次浏览

Here's some documentation on Using Apache HTTP Server on Microsoft Windows.

The Apache Bench is often called and refered to as ab.

Your Windows installation of Apache should contain a ab.exe and abs.exe file.

That'd be what you're looking for.

It sounds like you don't want to install Apache, but you do want Apache Bench. May I recommend XAMPP? Download the zip or 7zip versions (much larger download than regular Apache but you won't have to install). Unzip the download.

This is where what I would recommend, and where you currently are converge. Since you already have Apache installed you should already have Apache Bench.

You will find it under

.\apache\bin\ab.exe

in the zip file, if that is what you downloaded, it will be under

.\xampp\apache\bin\ab.exe

ab is an independent file, runs without apache http. so install apache http, copy ab from bin folder and uninstall http server.

You can download the Apache server zip files (a lot smaller in size compared to AMPP packages) from the following site

Apache Haus Downloads

and unzip it. Find the bin folder; you will find ab.exe there.