[NACOS ConnectException httpGet] currentServerAddr:http://localhost:8848, err : Connection refused (Connection refused)
时间: 2023-10-20 07:34:34 浏览: 240
根据引用内容,出现[NACOS ConnectException httpGet] currentServerAddr:http://localhost:8848, err : Connection refused (Connection refused)的错误提示是因为在配置文件中没有正确配置Nacos的地址。根据引用,你可以在bootstrap.yml文件中将config的enabled属性设置为false来关闭配置功能。然后,根据引用,你需要配置Nacos的地址,将spring.cloud.nacos.discovery.server-addr属性设置为正确的Nacos服务器地址。最后,根据引用,将spring.cloud.nacos.config.server-addr属性设置为正确的Nacos服务器地址,并将spring.cloud.nacos.config.enabled属性设置为true。这样配置后,应该能够解决连接被拒绝的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [SpringCloud-11-解决[NACOS HTTP-GET] The maximum number of tolerable server reconnection errors has ...](https://blog.csdn.net/IOT_LI/article/details/127365779)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [currentServerAddr:http://localhost:8848, err : Connection refused (Connection refused)](https://blog.csdn.net/zhangyupeng0528/article/details/123113688)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文