# 使用 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
- **版本:** 1.3.0
- **来源摘要:** Realtime distributed messaging platform
- **主页:** <https://nsq.io/>
- **仓库:** <https://github.com/nsqio/nsq>
- **最后更新:** 2026-06-06T11:29:13Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

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

- 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/


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
