Elastic Kibana - 安装为 Windows 服务 [英] Elastic Kibana - install as windows service

查看:41
本文介绍了Elastic 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" 

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆