本文主要是介绍[报错解决]Starting zookeeper ... already running as process 15400.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
报错一
ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper-cluster/zookeeper-1/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 15400.
解决
netstat -anp | grep 端口号
# 如果集群没有启动,那么该端口不应该被占用
netstat -apn | grep 2181 #默认2181端口为服务端提供端口,如果你的修改了,按你的实际情况为准
# 查询出来占用2181端口的进程PID后杀掉即可
kill -9 pid #pid为占用端口的进程id号
报错二
ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper-cluster/zookeeper-1/bin/../conf/zoo.cfg
Client port found: 2181. Client address: localhost. Client SSL: false.
Error contacting service. It is probably not running.
解决
出现这个报错信息,需要去找zookeeper的日志log,去进一步分析问题原因
在Linux系统上操作,其他报错也一样,需要找对应工具(redis,rabbitmq等)的报错日志
这篇关于[报错解决]Starting zookeeper ... already running as process 15400.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!