当前位置:网站首页>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
边栏推荐
- Blue Bridge Cup brush question notes (word analysis)
- Can the stock account opening commission be adjusted? Is it safe to open an account on your mobile phone
- Convolutional neural network -- lenet (pytorch Implementation)
- The place where the dream begins ---- first knowing C language (2)
- Modulo (remainder) operation in the range of real numbers: how to find the remainder of negative numbers
- Opencv camera calibration and distortion correction
- Complete backpack and 01 Backpack
- Mysql database complex operations: Database Constraints, query / connect table operations
- Design of alcohol detector based on 51 single chip microcomputer
- [literature reading] hat: hardware aware transformers for efficient natural language processing
猜你喜欢

Database: MySQL foundation +crud basic operation

爬虫解析网页的find方法

Method of realizing program startup and self startup through registry

动态sql

In depth interpretation of the investment logic of the consortium's participation in the privatization of Twitter

Deep learning of parameter adjustment skills

3 esp8266 nodemcu network server

爬虫解析网页的 对象.元素名方法

第7章 课程总结

信号与系统冲激响应与阶跃响应
随机推荐
深度学习调参技巧
SSRF (server side request forgery) -- Principle & bypass & Defense
C and pointers Chapter 18 runtime environment 18.4 summary
画冲击函数
Transformers is a graph neural network
Relationship between limit, continuity, partial derivative and total differential of multivariate function (learning notes)
查看 Anaconda 创建环境的位置
3 esp8266 nodemcu network server
Codeforces d.constructing the array (priority queue)
push to origin/master was rejected 错误解决方法
在pycharm中部署yolov5报错问题
Mysql database complex operations: Database Constraints, query / connect table operations
20220720折腾deeplabcut2
Anaconda => PyCharm => CUDA => cudnn => PyTorch 环境配置
The basic operation of data tables in MySQL is very difficult. This experiment will take you through it from the beginning
94. Middle order traversal of binary tree
Baidu website Collection
傅里叶分析(基础介绍)
Paging plug-in -- PageHelper
Codeforces C1. Simple Polygon Embedding