Update 网络.md
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
每个ES节点有两个不同的网络通信接口:
|
||||
|
||||
- 客户端通过节点的9200端口,使用 Elasticsearch REST API 通信,称为 http interface
|
||||
- 集群节点间的是通过9300端口,称为 transport interface,它也可以用于集群之间的通讯(集群与集群的通讯), remote clusters
|
||||
- 客户端通过节点的9200端口,基于HTTP协议,使用 Elasticsearch REST API 通信,称为 http interface
|
||||
- 集群节点间的是通过9300端口,基于TCP协议,称为 transport interface,它也可以用于集群之间的通讯(集群与集群的通讯), remote clusters
|
||||
|
||||
|
||||
如果在一个简单的网络中,可以直接使用 network.* 这类配置同时设置 http interface 和 transport interface
|
||||
@@ -19,8 +19,9 @@
|
||||
|
||||
```yaml
|
||||
|
||||
# 同时配置 http interface 和 transport interface 的网络监听地址
|
||||
# 默认值是_local_,表示任意操作系统上的环回地址,表示仅本地访问
|
||||
# network.host可以同时配置 http interface 和 transport interface 的网络监听地址
|
||||
# 默认值是_local_,表示环回地址,表示仅本地访问,不支持远程访问
|
||||
#
|
||||
network.host: _local_
|
||||
|
||||
# http interface通信端口,可以设置成单个值或范围,如果是范围,那么就是起始值
|
||||
|
||||
Reference in New Issue
Block a user