如果我离开network.host
在 /etc/elasticsearch/elasticsearch.yml
中注释掉,它将像正常一样开始(curl localhost:9200
返回预期的结果)。
但是,如果我设置 network.host = <public-ip>
然后sudo service elasticsearch restart
它会说好的,但是 elasticsearch 的状态是 not running
.
在这种情况下我做错了什么?
系统:Ubuntu 14.04 LTS
更新:通过将其绑定(bind)到 0.0.0.0
来修复.
最佳答案
更新:通过将其绑定(bind)到 0.0.0.0 进行修复。
关于Elasticsearch 绑定(bind)公网IP 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33770851/