-1
如何在zookeeper中使用runit?它的運行,但我得到那些討厭的日誌.....如何在zookeeper中使用runit
這裏是我的運行文件 更多的/ etc/SV /飼養員/運行
#!/bin/sh
exec 2>&1
exec /var/chef/cache/zookeeper-3.4.5/bin/zkServer.sh start >> /tmp/zookeeper.log 2>&1
下面
是我的日誌文件 尾巴的尾巴 - 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.
沒有..當我用runit啓動zk時,它沒有運行。當我用runit啓動zookeeper時,會出現上述日誌。我猜runit不能管理zk。 – Tampa
@Tampa我的意思是.. runit無法啓動zookeeper的原因是因爲它在zookeeper目錄中找到PID文件,這通常意味着zookeeper已在運行,或者它不乾淨地終止並且PID文件未被刪除。修復:使用'ps aux'查找zookeeper是否正在運行。如果不是,請刪除zookeeper目錄中的pid文件。 – Munim