Deploying NATS¶
NATS isn’t complicated to deploy. This guide will show you how to deploy NATS locally.
Installing NATS¶
Download the NATS server from the NATS download page.
Running NATS¶
Run the NATS server with the following command:
Configuring NATS¶
NATS can be configured using a configuration file. To run NATS with a configuration file, use the following command:
As a starting point, you can use the following configuration to enable everything you need while developing:
This will enable the HTTP and WebSocket interfaces.
Note that for production deployments, you need to configure NATS to use TLS and set up proper authentication. You can learn more about configuring NATS in the NATS configuration guide.