Nacos

How to install and configure Nacos, covering local, docker, kubernetes, and other environments.

This document explains how to install and configure Nacos, covering local, docker, and kubernetes environments. The following is just a quick example installation guide; for setting up a production-ready cluster, please refer to the official Nacos documentation.

Local Download

Nacos depends on the Java environment to run, currently supporting environments such as Linux, MacOS, and Windows.

You can download the latest stable version of Nacos and extract the binary package:

unzip nacos-server-$version.zip
cd nacos/bin
#tar -xvf nacos-server-$version.tar.gz

Startup Command

# Linux/Unix/Mac
sh startup.sh -m standalone

# Ubuntu
bash startup.sh -m standalone

# Windows
startup.cmd -m standalone

Verify Nacos Started Normally

Access the console via the browser at the following link: http://127.0.0.1:8848/nacos/

Docker

To start Nacos using Docker, please ensure you have properly installed Docker on your local machine.

docker run --name nacos-quick -e MODE=standalone -p 8849:8848 -d nacos/nacos-server:2.3.1

Kubernetes

Please refer to nacos-operator for details on deploying Nacos to a Kubernetes cluster.

Last modified September 30, 2024: Translate (7498923da5)