当前位置:网站首页>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

边栏推荐
猜你喜欢

为你的“架构”安排定期体检吧!
如何看待腾讯云数据库负责人林晓斌借了一个亿炒股?

cf:D. Magical Array【数学直觉 + 前缀和的和】

【木棉花】#夏日挑战赛# 鸿蒙小游戏项目——数独Sudoku(3)

手撸代码,Redis发布订阅机制实现

odoo coding conventions (programming conventions, coding guidelines)

在表格数据上,为什么基于树的模型仍然优于深度学习?

58:第五章:开发admin管理服务:11:开发【管理员人脸登录,接口】;(未实测)(使用了阿里AI人脸识别)(演示了,使用RestTemplate实现接口调用接口;)

部署zabbix

安全作业7.25
随机推荐
【木棉花】#夏日挑战赛# 鸿蒙小游戏项目——数独Sudoku(3)
Pytorch模型训练实用教程学习笔记:三、损失函数汇总
【pyqt5】自定义控件 实现能够保持长宽比地缩放子控件
How to install voice pack in Win11?Win11 Voice Pack Installation Tutorial
PHP 安全最佳实践
从普通进阶成优秀的测试/开发程序员,一路过关斩将
shell脚本专题(07):文件由cfs到bos
easyUI中datagrid中的formatter里面向后台发送请求获取数据
mysql解压版简洁式本地配置方式
Heavy cover special | intercept 99% malicious traffic, reveal WAF offensive and defensive drills best practices
数值矩阵的图形表示
10 个 PHP 代码安全漏洞扫描程序
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
How to record and analyze your alchemy process - use notes of the visual artifact Wandb [1]
vtk体绘制代码报错的解决办法(代码在vtk7,8,9中都能运行),以及VTK数据集网站
为你的“架构”安排定期体检吧!
ssh & scp
正则表达式
在全志V853开发板试编译QT测试
数据库系统原理与应用教程(072)—— MySQL 练习题:操作题 121-130(十六):综合练习