Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

NACOS environment building tutorial

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report