简体   繁体   中英

Elasticsearch on Azure virtual machine

I have installed elasticsearch on Azure virtual machine. I have installed the elasticsearch service which which automatically starts on system start up.

Everything works fine on VM. I can access the 9200 port of elasticsearch instance.

The problem is I can not access it with the help of dns name of the virtual machine ie xyz.cloudapp.net:9200

I have created endpoints for 9200 and 9300 port.

在此处输入图片说明

I want the Elasticsearch on just one VM for now. Am I missing any steps?

The answer to my question is here. I needed to add the following to my Elasticsearch config file

network.host: [_local_, _site_]

This works like a charm.

This has been added in ElasticSearch since 2.xx version.

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM