# 使用 Homebrew 安装 emqx

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

## 安装

```sh
sudo av install brew:emqx
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install emqx
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:emqx
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/emqx>
- **版本:** 5.8.8
- **来源摘要:** MQTT broker for IoT
- **主页:** <https://www.emqx.io/>
- **仓库:** <https://github.com/emqx/emqx>
- **上游文档:** <https://www.emqx.io/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/emqx/emqx/archive/refs/tags/v5.8.8.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- emqx (cli)
- emqx-5.8.8 (cli)
- emqx_cluster_rescue (cli)
- emqx_ctl (cli)
- emqx_ctl-5.8.8 (cli)
- emqx_fw (cli)
- install_upgrade.escript (cli)
- install_upgrade.escript-5.8.8 (cli)
- no_dot_erlang.boot (cli)
- node_dump (cli)
- nodetool-5.8.8 (cli)
- emqx (别名)
- emqx-5.8.8 (别名)
- emqx_cluster_rescue (别名)
- emqx_ctl (别名)
- emqx_ctl-5.8.8 (别名)
- emqx_fw (别名)
- install_upgrade.escript (别名)
- install_upgrade.escript-5.8.8 (别名)
- no_dot_erlang.boot (别名)
- node_dump (别名)
- nodetool-5.8.8 (别名)

## 依赖

- openssl@3

## 构建依赖

- autoconf
- automake
- cmake
- coreutils
- erlang@26
- freetds
- libtool

## macOS 提供的库

- cyrus-sasl
- krb5
- ncurses

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.8.8
- 本地数据: OK
- 上游仓库: https://github.com/emqx/emqx
- 检测到的最新版本: v5.8.8 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

EMQX is an Erlang-based MQTT broker and IoT messaging platform for high-scale device connectivity, MQTT protocol support, clustering, rules, data integrations, and operational management.

### 项目历史

EMQ's tenth-anniversary post says EMQX was released as an open-source project on GitHub on December 17, 2012. The same source frames its origin around Erlang, MQTT, and open source, and says development continued through the 2010s as MQTT became a default protocol for IoT messaging.

The official history highlights several product milestones: early MQTT 3.1 and 3.1.1 compatibility, EMQX 3.0 in 2018 with full MQTT 5.0 server support, EMQX 4.0 in 2020 with a built-in SQL-based rule engine, and EMQX 5.0 with larger-scale clustering, MQTT over QUIC, and 100M+ connection testing.

The README describes EMQX as a platform rather than only a broker, with support for MQTT 5.0, 3.1.1, and 3.1, plus MQTT-SN, CoAP, LwM2M, and MQTT over QUIC. It also documents the 5.9.0 licensing/product change that unified features from the previous open-source and enterprise editions under BSL 1.1.

### 采用历史

The anniversary post gives the clearest official adoption snapshot: more than 10K GitHub stars, more than 20M downloads, more than 20,000 enterprise users, and more than 30,000 active cluster deployments per month at the time of that post.

EMQX's commercial adoption story is also official: EMQ says the company opened in 2017 in response to enterprise users deploying EMQX at scale, and the anniversary post cites over 400 customers and over 70 Fortune 500 companies using EMQX in IoT, IIoT, connected-vehicle, and other mission-critical applications.

### 使用方式

Package users run EMQX as a broker service, commonly exposing MQTT ports, the Dashboard, and HTTP APIs. The official README shows Docker startup, Kubernetes operator documentation, downloads for self-managed installs, and build-from-source instructions.

Configuration became more HOCON-oriented in EMQX 5. The official configuration docs describe `etc` as the static configuration directory, `data/configs` as the dynamic runtime configuration directory, `base.hocon` for configuration-as-code, `cluster.hocon` for changes persisted through Dashboard/API/CLI, and `emqx.conf` for backward-compatible immutable settings.

In deployed systems, EMQX is commonly used as the MQTT ingress and routing layer for IoT data, with rules and bridges sending messages to Kafka, RabbitMQ, PostgreSQL, MySQL, MongoDB, Redis, ClickHouse, cloud messaging services, webhooks, and observability systems.

### 为什么软件包爱好者会关心

EMQX is a heavier package-manager entry than most CLIs in this batch: it ships a broker, management commands, Erlang runtime expectations, configuration layers, a dashboard, and service-style deployment behavior. For package maintainers, it sits closer to Redis, RabbitMQ, or Mosquitto than to a single-purpose command.

It matters to package nerds because it exposes the messy but useful intersection of package managers and distributed systems: local development installs, service supervision, data directories, versioned config migration, and network ports all have to line up before the binary is useful.

### 时间线

- 2012: EMQX released as an open-source project on GitHub on December 17.
- 2017: EMQ opened as a company after enterprise deployment demand grew.
- 2018: EMQX 3.0 released with complete MQTT 5.0 server support.
- 2020: EMQX 4.0 introduced a built-in SQL-based rule engine.
- 2022: EMQX 5.0 arrived with 100M+ connection testing and MQTT over QUIC highlighted by EMQ.
- v5.9.0: EMQX unified prior open-source and enterprise features under BSL 1.1.

### Related projects

- Related EMQ projects and surfaces include EMQX Cloud, the EMQX Kubernetes Operator, MQTTX, the EMQX rule engine and data integrations, and the broader MQTT broker ecosystem that includes Mosquitto, VerneMQ, HiveMQ, and RabbitMQ MQTT plugins.

### 来源

- <https://www.emqx.com/en/blog/reflections-on-the-tenth-anniversary-of-emqx>
- <https://github.com/emqx/emqx>
- <https://docs.emqx.com/en/emqx/latest/configuration/configuration.html>
- <https://docs.emqx.com/en/emqx/latest/configuration/configuration.md>


## 安全说明

formula declares a Homebrew service. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service
- infrastructure mutation or orchestration signal


## 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: etc/emqx.conf, etc/base.hocon, etc/cluster.hocon
## 源数据库详情

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


## 相关链接

- [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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [coreutils](https://pkg.so/zh-hans/brew/coreutils/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [mosquitto](https://pkg.so/zh-hans/brew/mosquitto/) - Shares pkgdb curated category or tags: cli, iot, messaging, mqtt, networking.
- [nats-server](https://pkg.so/zh-hans/brew/nats-server/) - Shares pkgdb curated category or tags: cli, messaging, networking, pubsub.
- [libpaho-mqtt](https://pkg.so/zh-hans/brew/libpaho-mqtt/) - Shares pkgdb curated category or tags: cli, messaging, mqtt, networking.
- [ejabberd](https://pkg.so/zh-hans/brew/ejabberd/) - Shares pkgdb curated category or tags: cli, erlang, messaging, networking.
- [rabbitmq](https://pkg.so/zh-hans/brew/rabbitmq/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [czmq](https://pkg.so/zh-hans/brew/czmq/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [signal-cli](https://pkg.so/zh-hans/brew/signal-cli/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [profanity](https://pkg.so/zh-hans/brew/profanity/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [lavinmq](https://pkg.so/zh-hans/brew/lavinmq/) - Local package facts share a topical domain. Shared terms: broker, cli, messaging, mqtt, networking.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
