如何将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.
答案 0 :(得分:1)
从外观上看,zookeeper已经在你的系统中运行了。或者有一个锁定文件,由于不干净关闭而未被删除。使用zkServer.sh status
检查它是否正常运行。