ES reachable from curl but not from Marvel/Sense

前端 未结 7 2269
天涯浪人
天涯浪人 2021-02-19 16:02

I am in the 2 hour of my Elastic Search immersion. I successfully installed ES with Marvel (with marvel.agent.enabled: false in config/elasticsearch.yml) and was ab

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 16:30

    Not strictly related to Marvel, but when I have issue connecting to elasticsearch from "outside" the server I need to.

    Change the elasticsearch.ymlconfig, where the host is listening to - listen to all network interfaces:

    network.host: 0.0.0.0
    

    After that, depending on your server, you should open the tcp port on your firewall (if you use the default port of elasticsearch: 9200). For example on Centos (or RHEL), you should run:

    sudo firewall-cmd --zone=public --add-port=9200/tcp --permanent
    sudo firewall-cmd --reload
    

提交回复
热议问题