当前位置:网站首页>nacos installation and configuration
nacos installation and configuration
2022-08-01 19:31:00 【Endless character】
Directory
I. nacos installation
- Official Documentation: https://nacos.io/en-cn/docs/what-is-nacos.html
- docker install nacos:
docker run --name nacos-standalone -e MODE=standalone -e JVM_XMS=512m -e JVM_XMX=512m -e JVM_XMN=256m -p 8848:8848-d nacos/nacos-server:latest - Notes
- The memory of the virtual machine should be enough. My allocation is 4G memory. If the above JVM settings are default, it will be very large
- Because this is relatively large, so be patient, and make sure that Ali's mirror has been configured

- At the same time, it can be configured to automatically start at boot:
docker container update --restart=always 770ecbd6b209, (770ecbd6b209 is modified to its own container id)
Second, nacos visit
Access address:
http://192.168.124.51:8848/nacos/index.html, (192.168.124.51 is modified to your own virtual machine ipaddress)
Default username and password: nacos/nacos

Third, nacos configuration details
1 - Configuration Management - New Configuration


2 - Namespace
- Namespaces and profiles:
- The main function is to isolate the configuration set, that is, to isolate the Data ID;
- Some configuration sets can be placed under a namespace
- Configuration set can be simply understood as a configuration set (Data ID) is a configuration file
- Data ID can also be more flexible. For example, it is possible to configure DB as a Data ID, consul as a Data ID, etc.
- Microservices:
- Because there are many services involved in microservices, namespace is a very good choice;
- We can create a namespace for each service;
- each namespace contains web services and srv services: eg user_web, user_srv - Namespace - New: After successful creation, a namespace ID will be created for us by default


3 - Namespaces - Add Configuration Management
- After creating the namespace, you can view the newly added namespace in configuration management



4 - Group
- Throw a question: We can indeed isolate microservices now, but how do the development, testing, and production environments of different microservices differ
- Use groups to solve the above problems: When we create a new configuration set, fill in the group Group to distinguish whether it is a development, test or production environment (note that this group cannot be modified, so inWhen creating a new one, you need to fill in the corresponding group)

- Clone Configuration Group



- We can also use the same Data Id and use different Groups to distinguish them

边栏推荐
- C#/VB.NET Extract table from PDF
- 【服务器数据恢复】服务器Raid5阵列mdisk组中多块磁盘离线的数据恢复案例
- 明尼苏达大学团队结合高通量实验与机器学习,实现有效可预测的特定位点重组过程,可调节基因编辑速度
- 驱动上下游高效协同,跨境B2B电商平台如何释放LED产业供应链核心价值?
- Shell script topic (07): file from cfs to bos
- Source code analysis of GZIPOutputStream class
- 屏:全贴合工艺之GFF、OGS、Oncell、Incell
- Library website construction source code sharing
- 17、负载均衡
- 安徽建筑大学&杭州电子科技大学|基于机器学习方法的建筑可再生能源优化控制
猜你喜欢
随机推荐
【软考软件评测师】基于规则说明的测试技术下篇
重保特辑|筑牢第一道防线,云防火墙攻防演练最佳实践
Screenshot of Selenium in Remote
Risc-v Process Attack
30天刷题计划(五)
Win11如何删除升级包?Win11删除升级包的方法
安装win32gui失败,解决问题
Source code analysis of GZIPOutputStream class
In the background of the GBase 8c database, what command is used to perform the master-slave switchover operation for the gtm and dn nodes?
【综述专栏】IJCAI 2022 | 图结构学习最新综述:研究进展与未来展望
【pyqt5】自定义控件 实现能够保持长宽比地缩放子控件
如何看待腾讯云数据库负责人林晓斌借了一个亿炒股?
【周赛复盘】LeetCode第304场单周赛
ExcelPatternTool: Excel form-database mutual import tool
win10,在proe/creo中鼠标中键不能放大缩小
【1374. 生成每种字符都是奇数个的字符串】
mysql函数的作用有哪些
#yyds干货盘点# 面试必刷TOP101: 链表中倒数最后k个结点
Keras深度学习实战——交通标志识别
[Neural Network] This article will take you to easily analyze the neural network (with an example of spoofing your girlfriend)









