本文介绍了弹性Kibana - 安装为Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将Elastic Kibana(只是一个批处理文件)安装为Windows服务?

How can I install Elastic Kibana (which is just a batch file) as a windows service?

它可能需要依赖于ElasticSearch进程(这个假设我在同一个服务器上运行它)

It probably needs to depend on the ElasticSearch process as well (this assumes I'm running it on the same server)

推荐答案

以下命令将创建名为ElasticSearch Kibana的服务4.0.1,使它依赖于ElasticSearch,所以它不会尝试太早启动。

The following command will create the service with a name of "ElasticSearch Kibana 4.0.1" and make it depend on ElasticSearch so it doesn't try to start too soon.

sc create "ElasticSearch Kibana 4.0.1" binPath= "{path to batch file}" depend= "elasticsearch-service-x64"

这篇关于弹性Kibana - 安装为Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 07:48