Is it possible to start Elasticsearch in the foreground in Windows?

Hi all,

As the title asks, is it possible to start Elasticsearch in the foreground in Windows? I have Elasticsearch running as a service on a non standard port on my workstation, and I occasionally need to look into datasets from other servers. Can I start Elasticsearch with some command line parameters to specify a port to bind to, and a data folder/cluster name to use?

Everything I found in the docs involved installing Elasticsearch as a service, which I would like to avoid if possible.

Thank you!

Danny

Yes, you can. Just use the bin/elasticsearch.bat script that is provided with the archive distributions. The command line parameters you're looking for are covered in the docs (look for network.host, http.port, transport.tcp.port, path.data, and cluster.name).

Excellent, thanks @jasontedor for pointing me in the right direction!

Cheers!

You're very welcome.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.