# 安装 httpd

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

## 安装

```sh
sudo av install brew:httpd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install httpd
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install httpd
```

  证据: Fedora Rawhide package metadata: httpd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/ab
```

  证据: Scoop official bucket manifest trees: bucket/ab.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:httpd
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/httpd>
- **版本:** 2.4.67
- **来源摘要:** Apache HTTP server
- **主页:** <https://httpd.apache.org/>
- **上游文档:** <https://httpd.apache.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://www.apache.org/dyn/closer.lua?path=httpd/httpd-2.4.67.tar.bz2>
- **更新:** 2026-05-04T16:02:43Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- ab (cli)
- apachectl (cli)
- apxs (cli)
- checkgid (cli)
- dbmmanage (cli)
- fcgistarter (cli)
- htcacheclean (cli)
- htdbm (cli)
- htdigest (cli)
- htpasswd (cli)
- httpd (cli)
- httxt2dbm (cli)
- logresolve (cli)
- rotatelogs (cli)
- suexec (cli)
- ab (别名)
- apachectl (别名)
- apxs (别名)
- checkgid (别名)
- dbmmanage (别名)
- fcgistarter (别名)
- htcacheclean (别名)
- htdbm (别名)
- htdigest (别名)
- htpasswd (别名)
- httpd (别名)
- httxt2dbm (别名)
- logresolve (别名)
- rotatelogs (别名)
- suexec (别名)

## 依赖

- apr
- apr-util
- brotli
- libnghttp2
- openssl@3
- pcre2

## macOS 提供的库

- libxcrypt
- libxml2

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Caveats: DocumentRoot is $HOMEBREW_PREFIX/var/www. The default ports have been set in $HOMEBREW_PREFIX/etc/httpd/httpd.conf to 8080 and in $HOMEBREW_PREFIX/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 2.4.67
- 管理器更新时间: 2026-05-04
- 本地数据: ok
- 上游仓库: https://httpd.apache.org/
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / medium
- broad file, network, media, or database tool signal
- formula declares a Homebrew service

## 相关链接

- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [libnghttp2](https://www.automicvault.com/pkg/brew/libnghttp2/) - Runtime dependency declared by Homebrew.
- [brotli](https://www.automicvault.com/pkg/brew/brotli/) - Runtime dependency declared by Homebrew.
- [apr](https://www.automicvault.com/pkg/brew/apr/) - Runtime dependency declared by Homebrew.
- [apr-util](https://www.automicvault.com/pkg/brew/apr-util/) - Runtime dependency declared by Homebrew.
- [shibboleth-sp](https://www.automicvault.com/pkg/brew/shibboleth-sp/) - Popular package that depends on this formula.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
