查看zookeeper是否启动
时间: 2023-09-01 20:12:53 浏览: 394
zookeeper查看工具
可以通过以下命令来检查zookeeper是否启动:
```
ps -ef | grep zookeeper
```
如果看到类似下面的输出,则说明zookeeper正在运行:
```
zookeeper 12345 1 0 00:00 ? 00:00:00 /usr/bin/java -Dzookeeper.log.dir=/var/log/zookeeper -Dzookeeper.root.logger=INFO,ROLLINGFILE -Djava.io.tmpdir=/var/lib/zookeeper -cp /etc/zookeeper/conf:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/netty.jar:/usr/share/java/slf4j-api.jar:/usr/share/java/slf4j-log4j12.jar:/usr/share/java/zookeeper.jar org.apache.zookeeper.server.quorum.QuorumPeerMain /etc/zookeeper/conf/zoo.cfg
```
如果没有输出,则说明zookeeper没有启动。
阅读全文