You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for running Elasticsearch as a service on Windows through service.bat and Apache Commons Daemon.
The ZIP file contains 3 new exe files: elasticsearch-service-x64.exe - service wrapper for 64-bit JVMs elasticsearch-service-x86.exe - service wrapper for 32-bit JVMs elasticsearch-service-mgr.exe - service manager (works with both 62 and 32 wrappers)
plus a new .bat file which is the entry point called service.bat
Simply running service.bat gives information on its usage:
> 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:\jvm\jdk1.7
The service 'elasticsearch-service-x64' has been installed.
> service start
The service 'elasticsearch-service-x64' has been started
> service stop
The service 'elasticsearch-service-x64' has been stopped
> service remove
The service 'elasticsearch-service-x64' has been removed
In most cases, one simply installs the service and potentially does extra customizations through the service manager
> service install
> service manager
Once installed, Elasticsearch acts as any other Windows service so can be started, stopped, have different Startup types, etc...
Note that service.bat relies on the same conventions as elasticsearch.bat and the debian package - meaning the environment variables will be used (if present) during the install to set certain options.
P.S. The service.bat automatically does detection of the architecture (64 vs 32) of the target JVM detected through JAVA_HOME variable. If a certain JVM is desired, make sure that JAVA_HOME points to it.
The text was updated successfully, but these errors were encountered:
Add support for running Elasticsearch as a service on Windows through
service.bat
and Apache Commons Daemon.The ZIP file contains 3 new exe files:
elasticsearch-service-x64.exe
- service wrapper for 64-bit JVMselasticsearch-service-x86.exe
- service wrapper for 32-bit JVMselasticsearch-service-mgr.exe
- service manager (works with both 62 and 32 wrappers)plus a new
.bat
file which is the entry point calledservice.bat
Simply running
service.bat
gives information on its usage:In most cases, one simply installs the service and potentially does extra customizations through the service manager
Once installed, Elasticsearch acts as any other Windows service so can be started, stopped, have different Startup types, etc...
Note that service.bat relies on the same conventions as
elasticsearch.bat
and the debian package - meaning the environment variables will be used (if present) during the install to set certain options.P.S. The
service.bat
automatically does detection of the architecture (64 vs 32) of the target JVM detected throughJAVA_HOME
variable. If a certain JVM is desired, make sure thatJAVA_HOME
points to it.The text was updated successfully, but these errors were encountered: