当前位置:网站首页>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>
边栏推荐
- Typera set title auto numbering
- 买股票在手机上开户安全吗 网上开户炒股安全吗
- 手机上炒股开户可靠吗 网上开户炒股安全吗
- Installing MySQL on Ubuntu
- 不同的子序列问题I
- 【测试】最火的测试开发学习路线内容再次大更新,助力通关大厂测开
- 简单测试轻量级表达式计算器Flee
- 50 tips that unity beginners can definitely use
- C language: a simple calculator is implemented by using code many times
- Open world mecha games phantom Galaxy
猜你喜欢

Solid and ambient colors

Raspberry pie preliminary use

Microservices, an important part of cloud native architecture

數據清洗工具flashtext,效率直接提昇了幾十倍數

BS-GX-016基于SSM实现教材管理系统

Unity4.6版本下载

【界面】pyqt5和Swin Transformer对人脸进行识别

PHP代码审计系列(一) 基础:方法、思路、流程

Restfultoolkitx of idea utility plug-in -- restful interface debugging

DAST black box vulnerability scanner part 5: vulnerability scanning engine and service capability
随机推荐
[interface] pyqt5 and swing transformer for face recognition
300 questions lesson 3 vector group
【混合编程jni 】第七篇之JNI 的命令行们
主从复制系统设计
数据清洗工具flashtext,效率直接提升了几十倍数
NPM command prompt error: eacces: permission denied
Openpyxl module
为什么EDR需要深度防御来打击勒索软件?
手机网上开户炒股安全吗 网上开户炒股安全吗
【老卫搞机】090期:键盘?主机?全功能键盘主机!
软件工程导论——第四章——形式化说明技术
您的连接不是私密连接
[kotlin] keyword suspend learning of thread operation and async understanding
分享三种在Excel表格中自动求和的方法
What are the preferential activities for stock account opening? Is it safe to open a mobile account?
6.24 learning content
Tensorrt notes (VII) sorting out tensorrt use problems
Unity初学者肯定能用得上的50个小技巧
Leetcode 718. 最长重复子数组(暴力枚举,待解决)
有哪些劵商推荐?现在在线开户安全么?