Configuration and use of Nacos under Windows

1. What is Nacos

The following quote is from nacos.io

Nacos /nɑ:kəʊs/ is the acronym for Dynamic Naming and Configuration Service, a dynamic service discovery, configuration management and service management platform that is easier to build cloud-native applications.
Nacos is dedicated to helping you discover, configure and manage microservices. Nacos provides a set of easy-to-use feature sets to help you quickly realize dynamic service discovery, service configuration, service metadata, and traffic management.
Nacos helps you build, deliver and manage microservice platforms more agilely and easily. Nacos is a service infrastructure for building a "service"-centric modern application architecture (such as microservice paradigm, cloud native paradigm).

服务(Service)是 Nacos 世界的一等公民。Nacos 支持几乎所有主流类型的“服务”的发现、配置和管理:

Kubernetes Service

gRPC & Dubbo RPC Service

Spring Cloud RESTful Service

Key features of Nacos include:
Service discovery and service health monitoring
Nacos supports DNS-based and RPC-based service discovery. After the service provider uses the native SDK, OpenAPI, or an independent Agent TODO to register the Service, the service consumer can use DNS TODO or HTTP&API to find and discover the service.
Nacos provides real-time health checks on services, preventing requests from being sent to unhealthy hosts or service instances. Nacos supports transport layer (PING or TCP) and application layer (such as HTTP, MySQL, user-defined) health checks. For the health check of services in complex cloud environments and network topology environments (such as VPC, edge network, etc.), Nacos provides two health check modes: agent reporting mode and server active detection. Nacos also provides a unified health check dashboard to help you manage service availability and traffic based on health status.
Dynamic Configuration Service
Dynamic Configuration Service allows you to centralize, externalize and dynamically manage application configuration and service configuration for all environments.
Dynamic configuration eliminates the need to redeploy applications and services when configuration changes, making configuration management more efficient and agile.
Configuration centralized management makes it easier to implement stateless services and make it easier for services to expand elastically on demand.
Nacos provides a simple and easy-to-use UI (console sample Demo) to help you manage all service and application configurations. Nacos also provides a series of out-of-the-box configuration management features, including configuration version tracking, canary release, one-click configuration rollback, and client configuration update status tracking, to help you manage configurations in production environments more securely change and mitigate the risk of configuration changes.
Dynamic DNS service
Dynamic DNS service supports weighted routing, making it easier for you to implement middle-tier load balancing, more flexible routing policies, traffic control, and simple DNS resolution services for the intranet of the data center. Dynamic DNS service can also make it easier for you to implement service discovery based on the DNS protocol to help you eliminate the risk of being coupled to the vendor's private service discovery API.
Nacos provides some simple DNS APIs TODO to help you manage associated domain names and available IP:PORT lists of services.
Service and metadata management
Nacos allows you to manage all services and metadata in the data center from the perspective of microservice platform construction , including management service description, life cycle, service static dependency analysis, service health status, service traffic management, routing and security policies, service SLA and the most important metrics statistics.

2. Download and configuration of Nacos

Nacos download
insert image description here
Unzip the downloaded nacos-server-2.2.3.zip to D:\develop\nacos-server-2.2.3\nacos
insert image description here
Enter the bin directory and click startup.cmd : There will be a command line flashing here . This is because Nacos starts in cluster mode by default, and needs to be modified to start in stand-alone mode.
insert image description here
insert image description here

Solve the flashback problem:
use notepad++ to open startup.cmd:
insert image description here
change set MODE="cluster" cluster mode to set MODE="standalone" stand-alone mode.
insert image description here
Successfully start nacos:
insert image description here
insert image description here
or

#Windows中在Nacos目录下,输入此命令也可单机模式启动nacos。
启动命令(standalone代表着单机模式运行,非集群模式):
startup.cmd -m standalone

Visit the link in the Console to enter Nacos:
insert image description here

3. Reference materials

What is Nacos
Nacos Quick Start
Authentication
Nacos Startup Flashback Solution Solution
Nacos Startup FlashbackSummary

Guess you like

Origin blog.csdn.net/qyfx123456/article/details/131298168