启动zookeeper失败:错误:Starting zookeeper … already running as process

启动zookeeper失败,错误:Starting zookeeper … already running as process 2547如下:

图片.png

原因:上次强制关机导致

解决方案:

1.从zookeeper配置文件中找到dataDir文件存储路径:

图片.png

2.去该路径下将zookeeper_server.pid临时文件删除,再尝试启动服务,如下图:

图片.png

3.测试启动:

图片.png

4.成功.

你可能感兴趣的:(启动zookeeper失败:错误:Starting zookeeper … already running as process)