弹性搜索听多个ips [英] elasticsearch listen to multiple ips

查看:153
本文介绍了弹性搜索听多个ips的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以收听多个主机地址,以便我可以收听本地主机请求和私人IP请求?

Is it possible to listen to multiple host adresses so that I can listen to localhost requests AND private IP requests?

如下所示:

network.host: "127.0.0.1", "192.168.1.4"


推荐答案

其实是的。
使用JSON符号。

In fact yes it is. Use the JSON notation.

这是我在配置中使用的:
network.bind_host:[yourhost ,localhost]

network.publish_host:yourhost
,因为你不想在环回接口上发送组播报文。

This is what I used in my configuration: network.bind_host: ["yourhost", "localhost"] and network.publish_host: yourhost as you don't want to send multicast packets on the loopback interface.

这篇关于弹性搜索听多个ips的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆