sc create "Kibana661" binPath= "{path}\kibana.bat" depend= "{elasticsearch service name}" # {path} kibana bin目录的完整路径 # {elasticsearch service name} elasticsearch 服务名称
存在问题windows
每次启动服务时,报错提示:没法启动服;实际测试能够正常使用Kibana提供的管理服务elasticsearch
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服务code
nssm install kibana661 "D:\kibana-6.6.1-windows-x86_64\bin\kibana.bat"