zookeeper虚拟机集群搭建问题:Cannot open channel to * at election address

  1. 配置zoo.cfg中各个主机的ip地址不对,查看myid是否与zoo.cfg中service.*是对应的。
  2. 关闭防火墙
    首先查看防火墙的状态
    1. systemctl status firewalld.service
      active(running)表示防火墙开启
      关闭防火墙
    2. systemctl stop firewalld service
    3. systemctl status firewalld.service
      disavtive(dead)表示防火墙已经关闭
      设置开机禁止防火墙服务器
    4. systemctl disable firewalld.service

你可能感兴趣的:(Java,zookeeper,linux)