Elastic Kibana - Install as windows service
#1 通过windows sc 服务命令安装
sc create "Kibana661" binPath= "{path}\kibana.bat" depend= "{elasticsearch service name}"
# {path} kibana bin目录的完整路径
# {elasticsearch service name} elasticsearch 服务名称
存在问题
每次启动服务时,报错提示:无法启动服;实际测试可以正常使用Kibana提供的管理服务
#2 使用 NSSM 服务管理助手进行安装,并配置环境变量
NSSM具体使用方法详见官网
#1.nssm UI安装 Kibana服务
1.nssm install kibana661
2.UI: choose kibana.bat as Application Path
3.UI: select a log file to write to on "I/O" tab for stdout and stderr
4.UI: on the "Dependencies" tab enter elasticsearch661 (or whatever you called it)
5.UI: "Install Service"
6.sc start kibana661
#2. nssm 命令行安装 Kibana服务
nssm install kibana661 "D:\kibana-6.6.1-windows-x86_64\bin\kibana.bat"