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

边栏推荐
- openresty 动态黑白名单
- 部署zabbix
- 30分钟成为Contributor|如何多方位参与OpenHarmony开源贡献?
- What are the application advantages of SaaS management system?How to efficiently improve the digital and intelligent development level of food manufacturing industry?
- 【webrtc】sigslot : 继承has_slot 及相关流程和逻辑
- 数据库系统原理与应用教程(070)—— MySQL 练习题:操作题 101-109(十四):查询条件练习
- Win11如何开启剪贴板自动复制?Win11开启剪贴板自动复制的方法
- 在GBase 8c数据库后台,使用什么样的命令来对gtm、dn节点进行主备切换的操作?
- Shell script topic (07): file from cfs to bos
- win10,在proe/creo中鼠标中键不能放大缩小
猜你喜欢
随机推荐
如何记录分析你的炼丹流程—可视化神器Wandb使用笔记【1】
【蓝桥杯选拔赛真题47】Scratch潜艇游戏 少儿编程scratch蓝桥杯选拔赛真题讲解
30天刷题计划(五)
数据库系统原理与应用教程(070)—— MySQL 练习题:操作题 101-109(十四):查询条件练习
Selenium在远程中的截图
GEE(8):使用MODIS填补由去云后的Landsat影像计算得到的NDVI数据
easyUI中datagrid中的formatter里面向后台发送请求获取数据
【服务器数据恢复】服务器Raid5阵列mdisk组中多块磁盘离线的数据恢复案例
内网穿透 lanproxy部署
MLX90640 Infrared Thermal Imager Temperature Measurement Module Development Notes (Complete)
mysql解压版简洁式本地配置方式
mysql函数的作用有哪些
Become a Contributor in 30 minutes | How to participate in OpenHarmony's open source contributions in multiple ways?
Mobile Zero of Likou Brush Questions
有点奇怪!访问目的网址,主机能容器却不行
【周赛复盘】LeetCode第304场单周赛
力扣刷题之移动零
选择合适的 DevOps 工具,从理解 DevOps 开始
{ValueError}Number of classes, 1, does not match size of target_names, 2. Tr
对于web性能优化我有话说!








