# 使用 Homebrew, apk, Nix 安装 nsq

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

## 安装

```sh
sudo av install brew:nsq
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nsq
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add nsq
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#nsq
```

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

## 软件包事实

- **软件包键:** brew:nsq
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nsq>
- **版本:** 1.3.0
- **来源摘要:** Realtime distributed messaging platform
- **主页:** <https://nsq.io/>
- **仓库:** <https://github.com/nsqio/nsq>
- **上游文档:** <https://nsq.io/>
- **许可证:** MIT
- **源码归档:** <https://github.com/nsqio/nsq/archive/refs/tags/v1.3.0.tar.gz>
- **最后更新:** 2026-06-06T11:29:13Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- nsq_stat (cli)
- nsq_tail (cli)
- nsq_to_file (cli)
- nsq_to_http (cli)
- nsq_to_nsq (cli)
- nsqadmin (cli)
- nsqd (cli)
- nsqlookupd (cli)
- to_nsq (cli)
- nsq_stat (别名)
- nsq_tail (别名)
- nsq_to_file (别名)
- nsq_to_http (别名)
- nsq_to_nsq (别名)
- nsqadmin (别名)
- nsqd (别名)
- nsqlookupd (别名)
- to_nsq (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.0
- 管理器更新时间: 2026-06-06
- 本地数据: OK
- 上游仓库: https://github.com/nsqio/nsq
- 检测到的最新版本: v1.3.0 (当前)
## 项目历史与用法

NSQ is a Go-based realtime distributed messaging platform from Bitly's engineering ecosystem. It was built for decentralized message processing, using `nsqd` producers/queues, `nsqlookupd` discovery, and `nsqadmin` operations tooling instead of a single centralized broker.

### 项目历史

Bitly announced NSQ publicly in October 2012 as a realtime message processing system designed for Bitly's scale and billions of messages per day. The NSQ community page credits Matt Reiferson and Jehiah Czebotar as the designers and developers, with support from Bitly, maintainers, and contributors.

### 采用历史

The December 2012 Bitly follow-up said NSQ had been released on October 9, 2012, had client libraries in seven languages, and had quickly become one of the most-watched Go projects on GitHub. NSQ's later homepage kept the same positioning: distributed topologies without single points of failure, horizontal scaling without centralized brokers, and both pub-sub and load-balanced delivery.

On July 1, 2026, Homebrew listed NSQ 1.3.0 with 273 installs in its 365-day analytics window. That is modest Homebrew usage, but the package remains useful for developers who need local NSQ daemons and CLI tools while testing older or deliberately simple queueing architectures.

### 使用方式

Package users install NSQ to get the daemons and operational tools: `nsqd` receives, queues, and delivers messages; `nsqlookupd` lets consumers discover producers; `nsqadmin` provides a web UI; helper commands such as `nsq_tail`, `nsq_to_file`, `nsq_to_http`, and `to_nsq` make it easy to inspect or bridge streams.

The important operational tradeoff is explicit in the docs: NSQ is primarily in-memory, can spill past a memory queue threshold, provides at-least-once delivery, does not guarantee ordering, and expects clients to be idempotent or de-duplicate work.

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

NSQ is a classic small distributed-systems package: easy to run, easy to reason about, and intentionally less feature-heavy than Kafka-class systems. It is most attractive when a team wants simple producer-local queueing, HTTP/TCP protocols, and discovery without operating a broker cluster.

### 时间线

- October 9, 2012: NSQ was released publicly by Bitly.
- December 2012: Bitly reported client libraries in seven languages and early strong GitHub attention.
- July 1, 2026: Homebrew listed NSQ 1.3.0.

### Related projects

- go-nsq is the official Go client package for NSQ.

### 来源

- <https://formulae.brew.sh/formula/nsq>
- <https://github.com/nsqio/nsq>
- <https://nsq.io/>
- <https://nsq.io/community.html>
- <https://nsq.io/overview/features_and_guarantees.html>
- <https://word.bitly.com/post/33232969144/nsq>
- <https://word.bitly.com/post/38385370762/spray-some-nsq-on-it>


## 安全说明

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

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

## 源数据库详情

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

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

- Nix - nsq: normalized package name match | nixpkgs package indexes: pkgs/by-name/ns/nsq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - nsq - 1.3.0-r10: normalized package name match | Alpine Linux edge package indexes: nsq from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A realtime distributed messaging platform | https://nsq.io/


## 相关链接

- [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.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [kaf](https://pkg.so/zh-hans/brew/kaf/) - Shares pkgdb curated category or tags: cli, data, go, messaging.
- [kcat](https://pkg.so/zh-hans/brew/kcat/) - Shares pkgdb curated category or tags: cli, data, messaging.
- [activemq](https://pkg.so/zh-hans/brew/activemq/) - Shares pkgdb curated category or tags: cli, data, messaging.
- [kaskade](https://pkg.so/zh-hans/brew/kaskade/) - Shares pkgdb curated category or tags: cli, data, messaging.
- [openmama](https://pkg.so/zh-hans/brew/openmama/) - Shares pkgdb curated category or tags: cli, data, messaging.
- [kafka](https://pkg.so/zh-hans/brew/kafka/) - Shares pkgdb curated category or tags: cli, data, distributed-systems, messaging.
- [lcm](https://pkg.so/zh-hans/brew/lcm/) - Shares pkgdb curated category or tags: cli, data, messaging.
- [lazysql](https://pkg.so/zh-hans/brew/lazysql/) - Shares pkgdb curated category or tags: cli, data, go.
- [fq](https://pkg.so/zh-hans/brew/fq/) - Local package facts share a topical domain. Shared terms: cli, data, message, message-queue, queue.
- [jlog](https://pkg.so/zh-hans/brew/jlog/) - Local package facts share a topical domain. Shared terms: cli, data, message, message-queue, queue.

## Combined YAML source

View the package source record on GitHub. [combined/nsq.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nsq.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
