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


(Danny Briggs) #1

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


(Jason Tedor) #2

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).


(Danny Briggs) #3

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

Cheers!


(Jason Tedor) #4

You're very welcome.


(system) #5

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