Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure traversing LAN in Elasticsearch

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

It is believed that many inexperienced people have no idea about how to configure traversing local area network in Elasticsearch. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

1. Physical deployment

Description: within the local area network of A, you want to use tcp to access the Elasticsearch of the local area network host b1 of B.

Comment out the configuration of network.host

Network.bind_host is configured as the private IP of B internal host b1, or 0.0.0.0

Network.publish_host is configured as the public network IP of B.

2.docker deployment (bridging mode)

Description: in the local area network of A, you want to use tcp to access the Elasticsearch under docker in the local area network host b1 of B.

Comment out the configuration of network.host

Network.bind_host is configured as 0.0.0.0

Network.publish_host is configured as the public network IP of B

Docker maps the inner and outer ports of the container, keeping it exactly the same (e.g. sudo docker run-p 29300 elasticsearch 29300-p 29200 elasticsearch 29200-v-- port-d port: version number).

After reading the above, have you mastered how to configure LAN traversing in Elasticsearch? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report