当前位置:网站首页>nacos2.1.0集群搭建
nacos2.1.0集群搭建
2022-07-25 09:12:00 【青临emo】
Nacos 基于 java 开发的,运行依赖于 java 环境。依赖 64 bit JDK 1.8+,请自行先安装jdk。
这里准备三台机器演示:
10.70.7.12
10.70.7.87
10.70.7.9
官网下载nacos
https://github.com/alibaba/nacos


下载完成上传服务器解压
我这里上传到服务器的nacosnode1文件夹下
没有文件可以创建目录根据实际需求定义:mkdir nacosnode1
tar -zxvf nacos-server-2.1.0.tar.gz
解压后进入nacos/conf目录会发现cluster.conf.example这个文件夹
cp一份
cp cluster.conf.example cluster.conf
vim cluster.conf

将ip改成自己的:wq保存
修改nacos配置文件application.properties
改成自己的数据库

将nacos的初始化sql文件导出到自己的服务器上的mysql进行初始化

最后
进入nacos的bin目录
运行startup.sh
./startup.sh
到此 node1节点就部署完成了,后续操作重复上面步骤就行
启动看效果

边栏推荐
- [buuctf-n1book][Chapter 2 advanced web]ssrf training
- [deep learning] mask Dino Trilogy - the correct way to open Detr Pandora's box
- Additional: SQL statement area / county in the lower half (data table)
- [machine learning] Finally, the important steps of machine learning modeling have been clarified
- activemq--可持久化机制
- CIR industrial automation radar
- uni-app - Refused to display ‘xxx‘ in a frame because an ancestor violates the following Content Sec
- How to write the code of wechat applet implementation tab
- 51 MCU peripherals: Motor
- Canvas dynamic picture avatar shaking JS special effect
猜你喜欢

OpenCV实现简单的人脸追踪

51 MCU internal peripherals: timer and counter
![[BUUCTF-n1book][第二章 web进阶]SSRF Training](/img/29/8894d04b27e0e73c4458c27bd9b935.png)
[BUUCTF-n1book][第二章 web进阶]SSRF Training
![[SCADA case] myscada helps VIB company realize the modernization and upgrading of production line](/img/67/b8c397d78a675014b5e08ceefc88dc.png)
[SCADA case] myscada helps VIB company realize the modernization and upgrading of production line

Programmers can't SQL? Ashes Engineer: all waiting to be eliminated! This is a must skill!

mysql中的数据结果排名

How to connect tdengine with idea database tool?

C语言实现二叉平衡树

Illustration leetcode - 919. Complete binary tree inserter (difficulty: medium)

【npm】 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
随机推荐
[stl]list Simulation Implementation
Software examination system architecture designer concise tutorial | software life cycle
Ten thousand words long, one word thoroughly! Finally, someone has made business intelligence (BI) clear
leetcode-238.除自身以外数组的乘积
Asp. Net core CMD common instructions
【npm】 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
JDBC的api全解
[buuctf-n1book][Chapter 2 advanced web]ssrf training
Full solution of JDBC API
2022-7-14 JMeter simulates the login of different users for pressure test
Six storage types in C language: Auto register static extern const volatile
[NPM] the "NPM" item cannot be recognized as the name of cmdlets, functions, script files or runnable programs. Please check the spelling of the name. If the path is included, make sure the path is co
This is the worst controller layer code I've ever seen
Write two channel (stereo) immediately Wav file
Illustration leetcode - 1184. Distance between bus stops (difficulty: simple)
How does Youxuan database encrypt data?
Collection of common algorithm questions in test post interview
sticksy.js页面滚动div固定位置插件
What are the commands used by pl/sql tools to export SQL files?
Additional: in the lower division / county (data sheet)