Installing

Binary Releases

Pre-built binaries for linux, darwin, freebsd and windows are available for download:

Current Stable Release: v1.0.0-compat

Older Stable Releases

Docker

See the docs for deploying NSQ with Docker.

OSX

 $ brew install nsq

Building From Source

Pre-requisites

  • golang (version 1.7+ is required)
  • dep (dependency manager)

Compiling

NSQ uses dep to manage dependencies and produce reliable builds. Using dep is the preferred method when compiling from source.

$ git clone https://github.com/nsqio/nsq $GOPATH/src/github.com/nsqio/nsq
$ cd $GOPATH/src/github.com/nsqio/nsq
$ dep ensure

NSQ remains go get compatible but it is not recommended as it is not guaranteed to produce reliable builds (pinned dependencies need to be satisfied manually).

Testing

$ ./test.sh