zookeeper启动后为何有两个进程?
linux下ps看进程,发现有两个,这两个进程分别是做什么的?
kity 4377 1947 0 00:07 pts/27 00:00:11 /usr/lib/jvm/java-8-oracle/bin/java -Dzookeeper.log.dir=. -Dzookeeper.root.logger=INFO,CONSOLE -cp /home/kity/Program/zookeeper-3.4.10/bin/../build/classes:/home/kity/Program/zookeeper-3.4.10/bin/../build/lib/.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/slf4j-log4j12-1.6.1.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/slf4j-api-1.6.1.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/netty-3.10.5.Final.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/log4j-1.2.16.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/jline-0.9.94.jar:/home/kity/Program/zookeeper-3.4.10/bin/../zookeeper-3.4.10.jar:/home/kity/Program/zookeeper-3.4.10/bin/../src/java/lib/.jar:/home/kity/Program/zookeeper-3.4.10/bin/../conf: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain
/home/kity/Program/zookeeper-3.4.10/bin/../conf/zoo.cfg
kity 5670 5665 0 00:45 pts/27 00:00:05 /usr/lib/jvm/java-8-oracle/bin/java -Dzookeeper.log.dir=. -Dzookeeper.root.logger=INFO,CONSOLE -cp /home/kity/Program/zookeeper-3.4.10/bin/../build/classes:/home/kity/Program/zookeeper-3.4.10/bin/../build/lib/.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/slf4j-log4j12-1.6.1.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/slf4j-api-1.6.1.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/netty-3.10.5.Final.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/log4j-1.2.16.jar:/home/kity/Program/zookeeper-3.4.10/bin/../lib/jline-0.9.94.jar:/home/kity/Program/zookeeper-3.4.10/bin/../zookeeper-3.4.10.jar:/home/kity/Program/zookeeper-3.4.10/bin/../src/java/lib/.jar:/home/kity/Program/zookeeper-3.4.10/bin/../conf: org.apache.zookeeper.ZooKeeperMain -server localhost:2181
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ZooKeeperMain 是zookeeper客户端的进程
QuorumPeerMain 是服务端的进程