NATS uses cookies to ensure you get the best experience on our website. Continuing to use this site assumes compliance with our Privacy Policy.
Edit on GitHub

Installing the NATS Server

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)
  • macOS

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.

go get

Docker Hub

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:

[18141] 2016/10/31 13:13:40.732616 [INF] Starting nats-server version 0.9.4
[18141] 2016/10/31 13:13:40.732704 [INF] Listening for client connections on
[18141] 2016/10/31 13:13:40.732967 [INF] Server is ready