Spring Boot 2.1.x actuator 连接 ElasticSearch Connection refused: no further information 异常处理...
时间: 2023-07-19 07:56:49 浏览: 79
这个错误通常出现在你的 Spring Boot 应用程序尝试连接 ElasticSearch 时,由于某种原因无法建立连接。
有几个可能的原因:
1. ElasticSearch 未正确配置或未启动。请确保 ElasticSearch 已正确配置并正在运行。
2. 防火墙或安全组设置阻止了连接。请检查您的防火墙或安全组设置,确保它们允许来自您的应用程序的连接。
3. 您的应用程序配置错误。请检查您的应用程序配置文件,确保您正确指定了 ElasticSearch 的主机名和端口号,并使用了正确的协议(HTTP 或 HTTPS)。
4. ElasticSearch 版本与您的应用程序不兼容。请确保您的应用程序与您正在运行的 ElasticSearch 版本兼容。
如果您无法解决此问题,请提供更多详细信息,以便我可以提供更具体的建议。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)