Start zookeeper crash under windows

problem

Start zookeeper crash under windows10.

solve

First, rename zoo_simple.cfg to zoo.cfg in the conf directory of the decompressed file of zk, then edit the zkServer.cmd file in the bin directory, and add pause in the last line, the startup will not flash It is easy to view error messages.
Insert picture description here
Error message:
Insert picture description here
Then open the zkEnv.cmd file:
Insert picture description here
it is found that the jdk environment variable is not set, so set the environment variable:
Insert picture description here
start zk after setting:
Insert picture description here
zk started successfully!

Guess you like

Origin blog.csdn.net/qq_28822933/article/details/85914273