Video coming soon…
⚠️ Always review any script before running it on your server. Test in a staging environment first.
📦 Resources & Setup Scripts
Before starting, please make sure to grab the required scripts from our GitHub repository to follow along with the video easily.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/refs/heads/main/databases/nats/nats-ubuntu.sh
chmod +x nats-ubuntu.sh
sudo bash nats-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/refs/heads/main/databases/nats/nats-ubuntu.sh
2 Make it Executable
chmod +x nats-ubuntu.sh
3 Run the Installer
sudo bash nats-ubuntu.sh
4 Access the Web UI
curl http://:8222/varz
# Then use the nats CLI against nats://:@:4222
Ports Used
| Port | Purpose |
|---|---|
| 4222 | Client connections |
| 8222 | HTTP monitoring (admin only) |
| 6222 | Cluster routing (between nodes) |
| 7422 | Leaf node connections (optional) |
