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:

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

Startup Command

  1. # Linux/Unix/Mac
  2. sh startup.sh -m standalone
  3. # Ubuntu
  4. bash startup.sh -m standalone
  5. # Windows
  6. 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.

  1. 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.

Feedback

Was this page helpful?

Yes No

Last modified September 30, 2024: Update & Translate Overview Docs (#3040) (d37ebceaea7)