-1

如何将 runit 与 zookeeper 一起使用?它正在运行,但我得到了那些讨厌的日志......

这是我的运行文件更多 /etc/sv/zookeeper/run

#!/bin/sh
exec 2>&1
exec  /var/chef/cache/zookeeper-3.4.5/bin/zkServer.sh start >> /tmp/zookeeper.log 2>&1

下面是我的日志文件 tail -f zookeeper.log 的尾部

Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.
JMX enabled by default
Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.
JMX enabled by default
Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.
JMX enabled by default
Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.
JMX enabled by default
Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.
4

1 回答 1

1

从外观上看,zookeeper 已经在您的系统中运行。或者有一个锁定文件由于不干净的关机而没有被删除。检查使用zkServer.sh status以查看它是否正常运行。

于 2013-08-02T10:37:43.617 回答