# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, winget 安装 monit

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

## 安装

```sh
sudo av install brew:monit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install monit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install monit
```

  证据: MacPorts ports tree: sysutils/monit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add monit
```

  证据: Alpine Linux edge package indexes: monit from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install monit
```

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

- dnf (92%):

```sh
sudo dnf install monit
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#monit
```

  证据: nixpkgs package indexes: pkgs/by-name/mo/monit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S monit
```

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

### Windows

- winget (92%):

```sh
winget install --id fzf404.Monit -e
```

  证据: Windows Package Manager source index: fzf404.Monit from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:monit
- **软件包管理器:** Homebrew
- **版本:** 6.0.0
- **来源摘要:** Manage and monitor processes, files, directories, and devices
- **主页:** <https://mmonit.com/monit/>
- **最后更新:** 2026-06-22T14:05:31-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- monit (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 6.0.0
## 项目历史与用法

Monit is a Unix-focused process and service supervision tool maintained under the Tildeslash/M/Monit project. Its manual defines the core role plainly: monitor processes, programs, files, directories, filesystems, network connections, scripts, and system resources, then take actions such as restart, stop, alert, or execute a configured command when a check fails.

### 项目历史

The package occupies a practical space between init systems, cron, and full metrics platforms. Operators write a compact monitrc file, run Monit as a daemon, and use it for local recovery loops such as restarting web servers, checking disk or memory thresholds, probing HTTP/SMTP/MySQL-like protocols, and exposing status through its built-in HTTP(S) interface. M/Monit extends that pattern into a central management product that treats Monit as the per-host agent.

### 使用方式

Monit gained visibility in early web operations because it handled fleets of identical application worker processes well. Twitter's 2010 engineering writeup says Twitter had relied on Monit for automatic recovery and monitoring of Mongrel workers, then kept Monit supervising the Unicorn master process while adding a more specialized process-tree watcher. Later release notes show the project continuing to track operational needs such as container PID 1 behavior, stronger checksum support, protocol checks, HTTP interface hardening, and platform-specific process accounting.

### 来源

- <https://bitbucket.org/tildeslash/monit>
- <https://blog.x.com/engineering/en_us/a/2010/unicorn-power>
- <https://mmonit.com/monit/changes/>
- <https://mmonit.com/monit/documentation/monit.html>
- <https://www.mmonit.com/>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.monitrc, /etc/monitrc, @sysconfdir@/monitrc, ./monitrc

## Credential files

- Unix: ~/.monitrc, /etc/monitrc, @sysconfdir@/monitrc, ./monitrc
## 其他软件包管理器记录

- Debian apt - monit - 1:5.34.3-1: normalized package name match | Debian stable package indexes: monit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility for monitoring and managing daemons or similar programs | https://mmonit.com/monit/
- Nix - monit: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/monit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - monit - 1:5.33.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: monit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utility for monitoring and managing daemons or similar programs | https://mmonit.com/monit/
- apk - monit - 5.35.2-r0: normalized package name match | Alpine Linux edge package indexes: monit from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Managing and monitoring on a UNIX system | https://mmonit.com/monit/
- apk - monit-doc - 5.35.2-r0: normalized package name match | Alpine Linux edge package indexes: monit-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Managing and monitoring on a UNIX system (documentation) | https://mmonit.com/monit/
- apk - monit-openrc - 5.35.2-r0: normalized package name match | Alpine Linux edge package indexes: monit-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Managing and monitoring on a UNIX system (OpenRC init scripts) | https://mmonit.com/monit/
- dnf - monit - 6.0.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: monit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Manages and monitors processes, files, directories and devices | https://mmonit.com/monit/
- pacman - monit - 6.0.0-1: normalized package name match | Arch Linux sync databases: monit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Utility for managing and monitoring, processes, files, directories and devices on a *NIX system | https://mmonit.com/monit/
- MacPorts - monit: normalized package name match | MacPorts ports tree: sysutils/monit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - fzf404.Monit: normalized package name match | Windows Package Manager source index: fzf404.Monit from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
