标签:keep bat service 文件 path commons isp aries stdout
下载prunsrc
http://archive.apache.org/dist/commons/daemon/binaries/windows
设置环境变量:
ZOOKEEPER_SERVICE:服务名
ZOOKEEPER_HOME:Zoookeeper文件目录
install.bat
%~dp0amd64\prunsrv.exe "//IS//%ZOOKEEPER_SERVICE%" ^
--DisplayName="Zookeeper (%ZOOKEEPER_SERVICE%)" ^
--Description="Zookeeper (%ZOOKEEPER_SERVICE%)" ^
--Startup=auto --StartMode=exe ^
--StartPath=%ZOOKEEPER_HOME% ^
--StartImage=%ZOOKEEPER_HOME%\bin\zkServer.cmd ^
--StopPath=%ZOOKEEPER_HOME%\ ^
--StopImage=%ZOOKEEPER_HOME%\bin\zkServerStop.cmd ^
--StopMode=exe --StopTimeout=5 ^
--LogPath=%ZOOKEEPER_HOME% --LogPrefix=zookeeper-wrapper ^
--PidFile=zookeeper.pid --LogLevel=Info --StdOutput=auto --StdError=auto
标签:keep bat service 文件 path commons isp aries stdout
原文地址:https://www.cnblogs.com/BlueEye/p/8849052.html