当前位置:网站首页>Nacos installation guide
Nacos installation guide
2022-06-21 22:24:00 【LV Er Meng Da】
1.Windows install
Single machine installation can be adopted in the development stage .
1.1 Download installation package
stay Nacos Of GitHub page , There is a download link , You can download compiled Nacos Server or source code :
GitHub Home page :https://github.com/alibaba/nacos
GitHub Of Release Download page :https://github.com/alibaba/nacos/releases
Pictured :

This course uses 1.4.1. Version of Nacos, The pre class materials have prepared the installation package :

windows Version USES nacos-server-1.4.1.zip Bag can .
1.2 decompression
Unzip this package to any non Chinese Directory , Pictured :

Directory description :
- bin: The startup script
- conf: The configuration file
1.3 port configuration
Nacos The default port is 8848, If other processes on your computer take up 8848 port , Please try to close the process first .
If it cannot be closed 8848 Port process , You can also enter nacos Of conf Catalog , Modify the port in the configuration file :

Modify the content :

1.4 start-up
It's very easy to start , Get into bin Catalog , The structure is as follows :

Then execute the command :
windows command :
startup.cmd -m standalone
The effect after execution is shown in the figure :

1.5. visit
Enter the address in the browser :http://127.0.0.1:8848/nacos that will do :

The default account number and password are nacos, After entering :

2.Linux install
Linux perhaps Mac Installation method and Windows similar .
2.1. install JDK
Nacos Depend on JDK function , Indexes Linux You also need to install JDK Talent .
Upload jdk Installation package :

Upload to a directory , for example :/usr/local/
Then decompress :
tar -xvf jdk-8u144-linux-x64.tar.gz
And then rename it as java
Configure environment variables :
export JAVA_HOME=/usr/local/java
export PATH=$PATH:$JAVA_HOME/bin
Set the environment variable :
source /etc/profile
2.2 Upload installation package
Pictured :

You can also directly use the information in the pre class materials tar.gz:

Upload to Linux A directory of the server , for example /usr/local/src Under the table of contents :

2.3. decompression
Command to extract the installation package :
tar -xvf nacos-server-1.4.1.tar.gz
Then delete the installation package :
rm -rf nacos-server-1.4.1.tar.gz
The final style in the catalog :

Inside the catalog :

2.4 port configuration
And windows It's similar to
2.5 start-up
stay nacos/bin Directory , Enter the command to start Nacos:
sh startup.sh -m standalone
3. Nacos Dependence
The parent project :
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2.2.5.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
client :
<!-- nacos Client dependent packages -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
边栏推荐
- 洛谷P1608 路径统计 题解
- Use the for loop to calculate n! Value of
- Lifting method (Part 2) lifting tree
- Beyond their peers, how do ordinary girls learn self-taught self-Media video clips after work?
- HiCPlotter|HiC数据可视化工具
- [deeply understand tcapulusdb technology] tmonitor background one click installation
- Is it OK for Zhongyan futures to open an account? Is the platform reliable? Is it safe?
- 技术分享 | kubernetes pod 简介
- 洛谷P1378 油滴扩展 题解
- RTX3090 与pytorch版本对应关系
猜你喜欢

实验二 栈和队列

TRNA analysis using trnascan se

迅为iTOP-3568开发板安装 RKNN Toolkit Lite2

Chess and card games

An Chaoyun was selected as one of the "top ten cloud computing solution providers" in the Asia Pacific region by cioreview in 2022
![[in depth understanding of tcapulusdb technology] tcapulusdb construction data](/img/64/4d7ec393d8469cdadc89078a8cf4b1.png)
[in depth understanding of tcapulusdb technology] tcapulusdb construction data

Learn vector -- how to use common interfaces

【深入理解TcaplusDB技术】TcaplusDB导入数据

HiC-Pro | HiC数据处理工具

001 new construction project based on opencvsharp
随机推荐
Use the for loop to calculate the odd and even sums in 1-100 [method 2]
JMter测试命令【笔记】
Introduction to software architecture
pi4j gpio针脚上拉电阻,下拉电阻概念
vb屏幕分辨率设置和获取_hawkol_新浪博客
File i/o
[deeply understand tcapulusdb technology] tmonitor background one click installation
分别利用for、while、do while,循环求1-100的和
UEFI dual system + dual hard disk installation
celery+rabbit分布式任务处理
精彩回顾丨一图了解华为云专场干货
利用do while循环,分别计算1-100中奇数的和、偶数的和【方法一】
Pal2nal| how to run pal2nal from the command line
软件架构介绍
Communication failure between botu simulation HMI and real 1200plc
Beyond their peers, how do ordinary girls learn self-taught self-Media video clips after work?
【深入理解TcaplusDB技术】TcaplusDB导入数据
UEFI 双系统+双硬盘安装
利用tRNAscan-SE做tRNA分析
As we media, why can some people earn more than 10000 yuan a month, but you can only earn a few yuan a month?