# 使用 Homebrew, apt, pacman 安装 mighttpd2

查看 mighttpd2 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mighttpd2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mighttpd2
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install mighttpd2
```

  证据: Debian stable package indexes: mighttpd2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- pacman (92%):

```sh
sudo pacman -S mighttpd2
```

  证据: Arch Linux sync databases: mighttpd2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:mighttpd2
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mighttpd2>
- **版本:** 4.0.10
- **来源摘要:** HTTP server
- **主页:** <https://kazu-yamamoto.github.io/mighttpd2/>
- **上游文档:** <https://kazu-yamamoto.github.io/mighttpd2/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://hackage.haskell.org/package/mighttpd2-4.0.10/mighttpd2-4.0.10.tar.gz>
- **最后更新:** 2026-07-22T13:45:49Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mighty (cli)
- mighty-mkindex (cli)
- mightyctl (cli)
- mighty (别名)
- mighty-mkindex (别名)
- mightyctl (别名)

## 依赖

- gmp

## 构建依赖

- cabal-install
- ghc

## macOS 提供的库

- libffi

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.0.10
- 管理器更新时间: 2026-07-22
- 本地数据: OK
- 上游仓库: https://kazu-yamamoto.github.io/mighttpd2/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Mighttpd2, invoked as mighty, is Kazu Yamamoto's Haskell HTTP server. Its home page describes it as a simple but practical file and CGI web server written in Haskell, implemented as a WAI application on Warp. The project is packaged with helper executables such as mighty-mkindex and mightyctl, reflecting its focus on serving static files, prebuilt directory indexes, and CGI workloads rather than being a broad application framework.

### 项目历史

The project's technical identity is Haskell web-server experimentation made usable as a daemon: the home page lists static file serving, CGI GET and POST handling, redirection, language negotiation, reverse proxying, URL rewriting via HTTP redirects, and performance comparisons against nginx in a httperf ping-pong benchmark. Its documentation links to articles and slides about high-performance web servers, WAI/Warp, and the architecture of Mighttpd, tying the package to the Haskell networking ecosystem.

### 使用方式

In package-manager terms, mighttpd2 is a niche web server for users who want a Warp/WAI-based standalone server for static and CGI content. It is much narrower than nginx, Apache httpd, or Caddy, but useful as a small Haskell-native server and as an example of deploying Haskell's high-concurrency HTTP stack.

### 来源

- <https://formulae.brew.sh/formula/mighttpd2>
- <https://github.com/kazu-yamamoto/mighttpd2>
- <https://kazu-yamamoto.github.io/mighttpd2/>
- <https://www.mew.org/~kazu/material/2011-mighttpd.pdf>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mighttpd2
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - mighttpd2 - 4.0.3-2: normalized package name match | Debian stable package indexes: mighttpd2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | classical web server on WAI/warp | https://kazu-yamamoto.github.io/mighttpd2/
- Ubuntu apt - mighttpd2 - 4.0.3-2: normalized package name match | Ubuntu 24.04 LTS package indexes: mighttpd2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | classical web server on WAI/warp | https://kazu-yamamoto.github.io/mighttpd2/
- pacman - mighttpd2 - 4.0.5-19: normalized package name match | Arch Linux sync databases: mighttpd2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | High performance web server on WAI/warp | https://kazu-yamamoto.github.io/mighttpd2/


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cabal-install](https://pkg.so/zh-hans/brew/cabal-install/) - Build dependency declared by Homebrew.
- [ghc](https://pkg.so/zh-hans/brew/ghc/) - Build dependency declared by Homebrew.
- [caddy](https://pkg.so/zh-hans/brew/caddy/) - Shares pkgdb curated category or tags: cli, http-server, networking, reverse-proxy, web-server.
- [nginx](https://pkg.so/zh-hans/brew/nginx/) - Shares pkgdb curated category or tags: cli, networking, reverse-proxy, web-server.
- [lighttpd](https://pkg.so/zh-hans/brew/lighttpd/) - Shares pkgdb curated category or tags: cli, http-server, networking, web-server.
- [fcgi](https://pkg.so/zh-hans/brew/fcgi/) - Shares pkgdb curated category or tags: cgi, cli, networking, web-server.
- [fcgiwrap](https://pkg.so/zh-hans/brew/fcgiwrap/) - Shares pkgdb curated category or tags: cgi, cli, networking, web-server.
- [mongoose](https://pkg.so/zh-hans/brew/mongoose/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [algernon](https://pkg.so/zh-hans/brew/algernon/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [webfs](https://pkg.so/zh-hans/brew/webfs/) - Shares pkgdb curated category or tags: cgi, cli, http-server, networking, web-server.
- [darkhttpd](https://pkg.so/zh-hans/brew/darkhttpd/) - Local metadata places this package in an adjacent workflow. Shared terms: cgi, cli, http, http-server, networking.

## Combined YAML source

View the package source record on GitHub. [combined/mighttpd2.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mighttpd2.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
