Latha
Latha

Reputation: 13

How run the Apache Zookeeper server as Background service in Windows

I was able to run the Zookeeper server from command prompt on Windows .

Today I would like it to run as a background service instead and also start automatically upon OS boot.

I was able to create the service using below command.

sc.exe create ZookeeperService binPath= “C:\zookeeper\apache-zookeeper-3.5.5\bin\zkServer.cmd”

Service Created

… but it is not started and an the following error appears:
Error

Then how should I run Zookeeper server as an auto started service?

Upvotes: 1

Views: 2510

Answers (1)

bralgs
bralgs

Reputation: 36

I had the same problem as you, and using NSSM was the only solution that worked for me.

sc.exe create

... does not work for batch files, because it does not implement the windows services interface like a .exe-file.

Possible solutions:

Upvotes: 1

Related Questions