Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

NACOS environment building tutorial

Shulou Source: shulou.com Published: 2022-06-02 09:50:57 09月29日 Update

This article mainly explains the "NACOS environment building tutorial", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and study the "NACOS environment building tutorial"!

Nacos is a middleware of Ali open source service governance solution, which provides service discovery and service health monitoring, dynamic configuration service, dynamic DNS service, service and its metadata management and other features.

The latest version of Nacos address https://github.com/alibaba/nacos/releases

The directory unzipped after download is as follows

Stand-alone deployment mode

1. Enter startup.sh-m standalone in the bin directory

two。 Access http://ip:8848/nacos as follows. Default login password nacos/nacos

Database schema

1. Modify conf/application.propertis to add configuration content

Spring.datasource.platform=mysqldb.num=1db.url.0=jdbc:mysql://ip:3306/nacos_config?useUnicode=true&characterEncoding=utf-8db.user=db.password=

two。 Create database nacos_config and execute / config/nacos-mysql.sql database script

two。 Enter startup.sh-m standalone in the bin directory

3. The access effect is the same as above.

Cluster mode (add the following operations in database mode)

1. Copy two nacos and name it nacos1 nacos2

two。 Modify the boot port in application.properties to 8847, 8848, 8849 respectively.

3. Create cluster.config under the config directory as follows

10.136.15.122:884810.136.15.122:884910.136.15.122:8847

4. Start

. / startup.sh

5. Check the situation of the cluster

Thank you for your reading, the above is the content of "NACOS Environment Building tutorial". After the study of this article, I believe you have a deeper understanding of the problem of NACOS environment building tutorial, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Services data tutorials environment content databases patterns directories learning dynamics situations clusters configuration health two middleware functions stand-alone passwords that is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Tech Info Linux OPPO Reno Redmi