Files
elasticsearch/docs/配置/网络.md
2022-09-14 09:25:49 +00:00

15 lines
702 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 网络
每个ES节点有两个不同的网络通信接口
- 客户端通过节点的9200端口使用 Elasticsearch REST API 通信,称为 http interface
- 集群节点间的是通过9300端口称为 transport interface它也可以用于集群之间的通讯集群与集群的通讯 remote clusters
如果在一个简单的网络中,可以直接使用 network.* 这类配置同时设置 http interface 和 transport interface
默认地Elasticsearch 监听本地的 localhost 地址,不能被远程访问,表示在本地开发环境。为了组成多节点集群,或被远程客户端访问,需要调整监听的网络配置,包括 network.host 参数。