There are numerous ways to install the NATS server.
Install From Binary
The latest official release binaries are always available on the GitHub releases page. The following platforms are available:
- Linux (x86, x86_64, ARM)
- Windows (x86, x86_64)
Alternative/Platform Specific Methods
The following methods may not all install the latest released version
Make sure your Go environment is set up, then install using
go get github.com/nats-io/gnatsd
The latest official Docker image is available on Docker Hub.
On Windows, the NATS server can be installed via Chocolatey:
choco install gnatsd
On macOS, the NATS server can be installed via Homebrew:
brew install gnatsd
Test Your Installation
To test your installation, you can invoke the NATS server binary, with no options and no configuration file (no authentication, no clustering).
When the server starts successfully, you will see that the NATS server listens for client connections on TCP Port 4222:
 2016/10/31 13:13:40.732616 [INF] Starting nats-server version 0.9.4  2016/10/31 13:13:40.732704 [INF] Listening for client connections on 0.0.0.0:4222  2016/10/31 13:13:40.732967 [INF] Server is ready