是否有将Elastic Search作为Windows服务运行的方法?这可能是不可能的,但我想我会看到。将Elastic Search作为Windows服务运行
回答
是的,它被描述为here。该链接描述了使用可在Windows上工作的Java Service Wrapper,。 :)
请注意,免费社区版本不支持将ElasticSearch作为64位进程运行。 – Lucas 2013-09-17 16:19:07
刚做了一个安装Windows服务和安装工具的设置。
https://github.com/jdzurik/ESWindowsInstaller
仅需要Java和.NET以及适用于Windows服务器的64位
我一直在使用这个installer。 就像“下一个,下一个,下一个!”一样简单!
从0.90.5+起,支持将ElasticSearch作为Windows服务运行正式包含在Windows发行版中。
http://www.elasticsearch.org/blog/0-90-5-released/
bin文件夹:
https://github.com/salyh/elasticsearch-msi-installer/releases:
> 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
有趣。我一直在关闭它,因为我认为它会很复杂。如果我知道这很容易,我会早点做到这一点。从开始运行到服务完成30秒。 – 2015-05-06 18:20:08
确保在'system variables'下定义了JAVA_HOME。 – 2017-10-31 19:46:37
与满足您的需求 或只需下载标准的预配置安装一个定制的ES配置创建自己的Elasticsearch MSI安装程序
从v0.90.5开始,框(执行批处理文件) - 请参阅running as a service on windows。
这个问题问的时间不是内置的解决方案,但现在有。请检查http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-service-win.html
Elasticsearch使用procrun包裹应用程序作为窗口服务。
对于Elasticsearch版本起始5.x,.bat文件名被更改。 要安装为Windows服务,我们可以使用下面的命令:
C:\elasticsearch-5.0.0>.\bin\elasticsearch-service install
假设你Elasticsearch包位于C:\elasticsearch-5.0.0
。
如果我们在64位Windows上使用Elasticsearch,我们最终可能会与下面的异常,在做上述:
线程堆栈大小不设置;通过C配置:\ elasticsearch-5.0.0 \设置\ jvm.options或ES_JAVA_OPTS
Reason:当运行Elasticsearch作为Windows服务是一个procrun需要分堆,最大堆和线程栈的问题大小将被设置。
Resolution:我们可以使用-Xss1m(或者你想成为什么都空间)jvm.options文件。
打开jvm.options文件中\ CONFIG文件夹,输入-Xss1m线
-Xms2g
-Xmx2g
像下面后:
-Xms2g
-Xmx2g
-Xss1m
- 1. 将Jetty 7作为Windows服务运行
- 2. 将lighttpd作为Windows服务运行
- 3. 将WEBrick作为Windows服务运行
- 4. 将Selenium RC作为Windows服务运行
- 5. 将Django作为Windows服务运行
- 6. 将.bat作为Windows服务运行
- 7. 将JAR作为Windows服务运行
- 8. 将Apache Derby作为Windows服务运行
- 9. 将IKVM exe作为Windows服务运行
- 10. 将Tomcat Servlet作为Windows服务运行
- 11. 运行Web服务作为Windows服务
- 12. 作为服务器运行的Windows 7
- 13. 作为Windows服务运行咆哮
- 14. Elastic Search
- 15. 运行Python脚本作为Windows服务
- 16. 运行WCF Windows服务作为InstanceContextMode.PerCall
- 17. PCSC.InvalidContextException作为Windows服务运行时
- 18. 运行JBoss 7.1.1.Final作为Windows服务
- 19. 在Windows上作为服务运行Redis
- 20. 将WSO2作为Windows服务运行时,代理不起作用
- 21. 将Rails作为Windows服务运行时,系统DSN不工作
- 22. Elastic Search Rails查找ID为
- 23. 在logstash实例运行时将条目复制到Elastic Search
- 24. Firebase/Flashlight Elastic Search
- 25. 使用NIO作为Windows服务运行Tomcat服务器
- 26. 如何停止作为Windows服务运行的web.py服务器
- 27. 在Windows中运行Python Web服务器作为服务
- 28. 运行硒服务器和ChromeDriver作为Windows服务
- 29. 运行的任务作为Windows服务进行IIS
- 30. 让WSO2 IOT服务器作为Windows服务运行
你[检查安装文档](http://www.elasticsearch.org/guide/reference/setup/installation.html)?这里描述的包装器[适用于许多操作系统](http://wrapper.tanukisoftware.com/doc/english/download.jsp)。 – ig0774 2012-01-06 16:13:07