当前位置:网站首页>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
边栏推荐
- TP5 Spreadsheet Excle 表格导出
- 投资理财产品的钱有保障吗?会不会没有了?
- PAT甲级 1020 Tree Traversals
- Pat grade a 1023 have fun with numbers
- pytorch 22 8种Dropout方法的简介 及 基于Dropout用4行代码快速实现DropBlock
- 剑指Offer || :栈与队列(简单)
- pytorch_ grad_ Cam -- visual Library of class activation mapping (CAM) under pytorch
- Mmdetection uses yolox to train its own coco data set
- 苹果手机证书构体知识
- Learn Tai Chi Maker - mqtt (VIII) esp8266 subscribe to mqtt topic
猜你喜欢

超級詳細,2 萬字詳解,吃透 ES!

mmdetection ValueError: need at least one array to concatenate解决方案

SAI钢笔工具如何使用,入门篇

2021:Zero-shot Visual Question Answering using Knowledge Graphs使用知识图的零次视觉问答

Pat grade a 1018 public bike management

Stack overflow vulnerability

Learn from Taiji Maker - mqtt Chapter 2 (I) QoS service quality level
![[micro service sentinel] degradation rules slow call proportion abnormal proportion abnormal constant](/img/4d/4d4424b609a3c0cd36c5c79daa8861.png)
[micro service sentinel] degradation rules slow call proportion abnormal proportion abnormal constant

超级详细,2 万字详解,吃透 ES!

Anaconda3安裝過程及安裝後缺失大量文件,沒有scripts等目錄
随机推荐
Is the division of each capability domain of Dama, dcmm and other data management frameworks reasonable? Is there internal logic?
Il manque beaucoup de fichiers et de répertoires tels que scripts pendant et après l'installation d'anaconda3
jmeter将上一个请求的结果作为下一个请求的参数
学习太极创客 — MQTT(八)ESP8266订阅MQTT主题
2021:Zero-shot Visual Question Answering using Knowledge Graphs使用知识图的零次视觉问答
学习太极创客 — MQTT(七)MQTT 主题进阶
[Shangshui Shuo series] day 6
Pat grade a 1018 public bike management
mmdetection ValueError: need at least one array to concatenate解决方案
Pat grade a 1019 general palindromic number
记录unity 自带读取excel的方法和遇到的一些坑的解决办法
Enterprise digital transformation: informatization and digitalization
1、项目准备与新建
2022 operation of simulated examination platform for tea artist (Senior) work license question bank
2020:MUTANT: A Training Paradigm for Out-of-Distribution Generalizationin Visual Question Answering
Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
2021:Greedy Gradient Ensemble for Robust Visual Question Answering
Learn Tai Chi Maker - mqtt (VI) esp8266 releases mqtt message
Laravel 的 ORM 缓存包
Paddlepaddle 20 implementation and use of exponentialmovingaverage (EMA) (support static graph and dynamic graph)