Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running Elastic Search as a Windows service

Is there a way to run Elastic Search as a Windows service? It may not be possible, but I thought I would see.

like image 725
John Livermore Avatar asked Jan 06 '12 16:01

John Livermore


People also ask

How do I run Elasticsearch as a Windows service?

Install and run Elasticsearch as a service on WindowseditThe name of the service and the value of ES_JAVA_HOME will be made available during install: C:\elasticsearch-8.4. 0\bin>elasticsearch-service. bat install Installing service : "elasticsearch-service-x64" Using ES_JAVA_HOME (64-bit): "C:\jvm\jdk1.


1 Answers

As of 0.90.5+, support for running ElasticSearch as a Windows Service is officially included in the Windows distribution.

https://www.elastic.co/blog/0-90-5-released/

From the bin folder:

> service.bat Usage: service.bat install|remove|start|stop|manager [SERVICE_ID]  > service install Installing service      :  'elasticsearch-service-x64' Using JAVA_HOME (64-bit):  c:jvmjdk1.7 The service 'elasticsearch-service-x64' has been installed.  > service start The service 'elasticsearch-service-x64' has been started 

Notice the latest version has changed bat name into elasticsearch-service.bat.

like image 127
WiredPrairie Avatar answered Sep 29 '22 13:09

WiredPrairie