将Elastic Search作为Windows服务运行

Joh*_*ore 27 windows-services elasticsearch

有没有办法将Elastic Search作为Windows服务运行?这可能是不可能的,但我想我会看到.

Wir*_*rie 24

从0.90.5+开始,Windows发行版中正式包含对作为Windows服务运行ElasticSearch的支持.

http://www.elasticsearch.org/blog/0-90-5-released/

从bin文件夹:

> 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
Run Code Online (Sandbox Code Playgroud)


小智 8

刚安装了Windows服务和安装工具进行设置.

https://github.com/jdzurik/ESWindowsInstaller

仅需要Java和.net,适用于Windows服务器64位


jto*_*mpl 6

您可以使用此二进制安装,完美运行,您无需在CLI中执行任何操作.


And*_*ndy 2

是的,这里有描述。该链接描述了如何使用Java Service Wrapper,它可以在 Windows 上运行。:)