zookeeper运行异常时:it is probobally not running 常见的错误

1、防火墙没关
2、myid
3、zoo.cfg
4、端口被占用

上面差不多是zookeeper的常见错误,下面是具体的解决措施:
1、防火墙没关,可以查看下防火墙状态

systemctl status firewalld

如果没关闭就关闭下,执行命令:

systemctl stop firewalld

并且彻底关闭防火墙:

systemctl disable firewalld

2、查看myid,路径如下:

cat /usr/zookeeper/zkdata/myid

3、查看zkdata下面的zoo.cfg配置文件及其中的参数是否有问题;
4、以上都没问题的话,就极有可能是端口被占用了;执行一下命令:

netstat -lnp | grep 2181

查看下2181端口的状态:
端口占用
发现端口被占用,需要杀死进程:

kill -9 2409

再次查看2181端口:netstat -lnp | grep 2181
就发现恢复正常了。

猜你喜欢

转载自blog.csdn.net/weixin_45612540/article/details/110411584