当前位置:网站首页>Nacos installation and pit stepping
Nacos installation and pit stepping
2022-07-27 00:19:00 【、wook】
List of articles
Preface :
springcloud alibaba And springboot For version selection, please refer to the official address ( Click on the version description ) :https://github.com/alibaba/spring-cloud-alibaba/wiki
1.windows edition
1. Download from official website https://nacos.io/zh-cn/docs/quick-start.html
Choose the version you want 

After downloading, directly unzip it to the customized directory .
2. Startup and possible errors
Stand alone start : Go to the installation directory /bin Under the table of contents ,shell Execute... In the window startup.cmd -m standalone ( Default password nacos nacos)
1. The default is cluster startup , No addition standalone Will report a mistake
2. If it changes /conf In the catalog application.properties, Remember to execute nacos-mysql.sql and 1.4.0-ipv6_support-update.sql
4. I encountered an embarrassing pit during the test , When building a multi-level directory structure , The business module added pom , Lead to double-screen Start registration naocs Failure ...Param 'serviceName' is illegal, serviceName is blank
<!--springboot 2.4 After that, it will not be loaded by default bootstrap.yml, If you need to load bootstrap Files need to be manually added with dependencies -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
3. To configure Nacos config And errors encountered ( Procedural issues , Understanding can )
1.pom Add to file maven rely on
<!--nacos Configuration center -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
An exception occurred when the startup class was started :
c.a.nacos.client.security.SecurityProxy : [SecurityProxy] login http request failed url: http://tz-nacos:8848/nacos/v1/auth/users/login, params: {
username=nacos}, bodyMap: {
password=}, errorMsg: errCode: 100, errMsg: Nacos serialize for class [com.alibaba.nacos.common.http.HttpRestResult] failed.
as a result of config hinder dataid The configuration should be the same as the service name , example : - data-id: ${spring.application.name}.yml
If appear 403 Error of , It is estimated that permission control is enabled ,bootstrap.yml in nacos To add an account and password !
Example of configuration results :
server:
port: 17888
spring:
application:
name: double-screen-service
cloud:
nacos:
server-addr: tz-nacos:8848
username: nacos
password: tz123456
config:
file-extension: yaml
namespace: public
# notes : Be sure to group here according to your own , I've been here for a long time ..
group: tz4cloud
边栏推荐
- Deploy yolov5 error reporting in pycharm
- [Gorm] model relationship -hasone
- 深度学习调参技巧
- 2022.7.18-----leetcode.749
- Push to origin/master was rejected error resolution
- [netding Cup 2018] Fakebook records
- deeplabcut使用1
- uni-app学习(二)
- 转置卷积相关
- Identity server4 authorization successful page Jump encountered an error: exception: correlation failed Solution of unknown location
猜你喜欢
![[Gorm] model relationship -hasone](/img/90/3069059ddd09dc538c10f76d659b08.png)
[Gorm] model relationship -hasone

Upload files to the server

Chapter 1 develop the first restful application

信号与系统学习零输入响应

在pycharm中部署yolov5报错问题

Deep learning of parameter adjustment skills

07 design of ponding monitoring system based on 51 single chip microcomputer
![[netding Cup 2018] Fakebook records](/img/9f/b9111da8b2d9f8e79d82847aec906c.png)
[netding Cup 2018] Fakebook records

Share a regular expression

What scenarios are Tencent cloud lightweight application servers suitable for?
随机推荐
第1章 开发第一个restful应用
Flink SQL (II) Kafka connector
15_ Key function and principle
Relationship between Unicode and UTF-8
滑动窗口问题总结
Sliding window problem summary
Skiasharp's WPF self drawn bouncing ball (case version)
Design of alcohol detector based on 51 single chip microcomputer
Recbole use 1
动态sql
Chapter 1 develop the first restful application
Chapter 7 course summary
Leetcode - linked list
4. Talk about the famous Zhang Zhengyou calibration method
生成yolov5.wts文件出错
14_ Basic list
第3章 跨域问题
push to origin/master was rejected 错误解决方法
信号与系统冲激响应与阶跃响应
deeplabcut使用1