Is there a way to run Elastic Search as a Windows service? It may not be possible, but I thought I would see.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With