当前位置:网站首页>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
边栏推荐
- 明尼苏达大学团队结合高通量实验与机器学习,实现有效可预测的特定位点重组过程,可调节基因编辑速度
- [Server data recovery] Data recovery case of offline multiple disks in mdisk group of server Raid5 array
- 有序双向链表的实现。
- Hardware Bear Original Collection (Updated 2022/07)
- 图文详述Eureka的缓存机制/三级缓存
- 百度无人驾驶商业化已“上路”
- Website construction process
- XSS靶场中级绕过
- PanGu-Coder:函数级的代码生成模型
- PROE/Croe如何编辑已完成的草图,让其再次进入草绘状态
猜你喜欢
From ordinary advanced to excellent test/development programmer, all the way through
【周赛复盘】LeetCode第304场单周赛
安全作业7.25
Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
力扣刷题之合并两个有序数组
Combining two ordered arrays
XSS靶场中级绕过
57:第五章:开发admin管理服务:10:开发【从MongoDB的GridFS中,获取文件,接口】;(从GridFS中,获取文件的SOP)(不使用MongoDB的服务,可以排除其自动加载类)
工作5年,测试用例都设计不好?来看看大神的用例设计总结
GZIPOutputStream 类源码分析
随机推荐
重保特辑|筑牢第一道防线,云防火墙攻防演练最佳实践
The solution to the vtk volume rendering code error (the code can run in vtk7, 8, 9), and the VTK dataset website
TestNG多个xml进行自动化测试
odoo coding conventions (programming conventions, coding guidelines)
Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
Write code anytime, anywhere -- deploy your own cloud development environment based on Code-server
八百客、销售易、纷享销客各行其道
MLX90640 Infrared Thermal Imager Temperature Measurement Module Development Notes (Complete)
[pyqt5] Custom controls to achieve scaling sub-controls that maintain the aspect ratio
1个小时!从零制作一个! AI图片识别WEB应用!
18、分布式配置中心nacos
为你的“架构”安排定期体检吧!
Pytorch模型训练实用教程学习笔记:四、优化器与学习率调整
Keras深度学习实战——交通标志识别
DAO开发教程【WEB3.0】
mysql解压版简洁式本地配置方式
Win11校园网无法连接怎么办?Win11连接不到校园网的解决方法
Screen: GFF, OGS, Oncell, Incell of full lamination process
Shell script topic (07): file from cfs to bos
在GBase 8c数据库后台,使用什么样的命令来对gtm、dn节点进行主备切换的操作?