当前位置:网站首页>There are two problems when Nacos calls microservices: 1 Load balancer does not contain an instance for the service 2. Connection refused
There are two problems when Nacos calls microservices: 1 Load balancer does not contain an instance for the service 2. Connection refused
2022-06-27 03:25:00 【nightwind2017】
Project scenario :
Spring Boot + Spring Cloud + Spring Cloud Alibaba + Nacos
1、 Problem description
local After the project starts , utilize nacos Visit the registry named test The service , stay test When the service has been registered in the registry ,loca Still can't access test, The log shows :
Load balancer does not contain an instance for the service “test”
Solution :
This is the time to check local The configuration file for the project , find nacos Configuration location of

Put the ip Configure... For the machine where the project is started ip Address , Such as the machine ip For the local , It's configured as 127.0.0.1
2、 Problem description
After the above problems are corrected ,local visit test The following problems may occur :
Connection refused: connect executing POST http:
Solution :
test If it is deployed on a server , We have to check test Whether the port used by the project on this server is open , And external access
The test method is , open windows Systematic cmd Command line , Enter the following command :
telnet xxx.xx.xx.xx(test On the server where the project is located ip) 0000(test Port number used by the project )
If the command line does not recognize telnet command , How to query windows System on telnet service
How to be in windows System on telnet service
If the port is inaccessible , Then open the port on the server
边栏推荐
- How does source insight (SI) display the full path? (do not display omitted paths) (turn off trim long path names with ellipses)
- GAMES101作业7提高-微表面材质的实现过程
- mmdetection 用yolox训练自己的coco数据集
- 2020:MUTANT: A Training Paradigm for Out-of-Distribution Generalizationin Visual Question Answering
- Flink learning 5: how it works
- Pat grade a 1021 deep root
- How do I simplify the development of interfaces in open source systems?
- [micro service sentinel] degradation rules slow call proportion abnormal proportion abnormal constant
- 学习太极创客 — MQTT 第二章(一)QoS 服务质量等级
- Human soberness: bottom logic and top cognition
猜你喜欢

Mmdetection valueerror: need at least one array to concatenate solution

pytorch_ grad_ Cam -- visual Library of class activation mapping (CAM) under pytorch

栈溢出漏洞

Introduction to stm32

流沙画模拟器源码

Mmdetection uses yolox to train its own coco data set

jmeter分布式压测

Anaconda3 is missing a large number of files during and after installation, and there are no scripts and other directories

2020:MUTANT: A Training Paradigm for Out-of-Distribution Generalizationin Visual Question Answering

2021:passage retrieval for outside knowledgevisual question answering
随机推荐
Calculation of average wind direction and speed (unit vector method)
TP5 spreadsheet excel table export
2021:passage retrieval for outside knowledgevisual question answering
Docker deploy redis cluster
解码苹果手机证书文件方法
Flink learning 3: data processing mode (stream batch)
Super détaillé, 20 000 caractères détaillés, mangez à travers es!
Flink learning 4:flink technology stack
Learn Tai Chi Maker - mqtt Chapter 2 (3) reserved messages
Uni-app 之uParse 富文本解析 完美解析富文本!
人群模拟
Flink learning 1: Introduction
PAT甲级 1023 Have Fun with Numbers
2019LXMERT:Learning Cross-Modality Encoder Representations from Transformers
Mmdetection uses yolox to train its own coco data set
Cvpr2021:separating skills and concepts for new visual question answering
lodash get js代码实现
Questions and answers of chlor alkali electrolysis process in 2022
2021:AdaVQA: Overcoming Language Priors with Adapted Margin Cosine Loss∗自适应的边缘余弦损失解决语言先验
苹果唯一图谱架构常识