当前位置:网站首页>Nacos installation guide
Nacos installation guide
2022-06-26 23:25:00 【fate _ zore】
Nacos Installation guide
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 :

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 :

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>
边栏推荐
- [mixed programming JNI] Part 12 jnaerator
- 买股票在手机上开户安全吗 网上开户炒股安全吗
- 【强基计划】数学与物理竞赛中的微积分部分视频
- Partage de trois méthodes de sommation automatique dans un tableau Excel
- xshell的安装、xftp的安装
- Why don't I recommend going to sap training institution for training?
- The processing of private chat function in go language
- go语言的服务发现、存储引擎、静态网站
- 中金证券经理的开户链接开户买股票安全吗?有谁知道啊
- Bs-gx-016 implementation of textbook management system based on SSM
猜你喜欢

Bs-gx-016 implementation of textbook management system based on SSM

Nacos安装指南

Typera set title auto numbering

软件工程导论——第四章——形式化说明技术

xshell的安装、xftp的安装

Unityeditor Editor Extension - table function

Redcap is ready to come out. It is indispensable to build a "meta universe"

WP collection plug-in tutorial no thanks for WordPress collection of rules

ASP.Net Core创建MVC项目上传文件(缓冲方式)

简单测试轻量级表达式计算器Flee
随机推荐
L'outil de nettoyage des données flashtext améliore directement l'efficacité de plusieurs dizaines de fois
在手机开户买股票安全吗 网上开户炒股安全吗
Microservices, an important part of cloud native architecture
6.24 学习内容
12 color ring three primary colors
go语言的服务发现、存储引擎、静态网站
Wechat applet automatically generates punch in Poster
Is it reliable to open an account on a stock trading mobile phone? Is it safe to open an account online and speculate in stocks
Which securities dealers recommend? Is it safe to open an account online now?
Three solutions for improving embedded software development environment
为什么EDR需要深度防御来打击勒索软件?
Introduction to operator
PHP代码审计系列(一) 基础:方法、思路、流程
主从复制系统设计
Installing MySQL on Ubuntu
CVE-2022-30190 Follina Office RCE分析【附自定义word模板POC】
从位图到布隆过滤器,C#实现
浅谈分布式系统开发技术中的CAP定理
ubuntu上安装mysql
Color matching and related issues