为了账号安全,请及时绑定邮箱和手机立即绑定

如何跨主机访问9300端口?

9300端口默认只在localhost中能够访问,我在物理机上的java client无法访问虚拟机中的9300端口,不知老师有没有什么好的解决方案?

另外springboot的官方文档中首推基于Restful的Jest,而不是自己的基于TransportClient的spring-data-elasticsearchhttps://img1.sycdn.imooc.com//5b762ad00001289513130922.jpg

连elasticsearch官方也有废弃TransportClient的打算

We plan on deprecating the TransportClient in Elasticsearch 7.0 and removing it completely in 8.0. Instead, you should be using theJava High Level REST Client, which executes HTTP requests rather than serialized Java requests.

是否9300端口最好是仅仅用作集群之间的通讯,而不再作为客户端的通讯端口?



正在回答

1 回答

举报

0/150
提交
取消

如何跨主机访问9300端口?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信