Zookeeper -- 不使用 Kafka 自带的 Zookeeper,单独搭建 Zookeeper 集群 & 如何查看 Zookeeper 版本

应用场景:Kafka 自带的 Zookeeper 在漏洞扫描中扫出了 Zookeeper 低版本漏洞,因此这里我们就不用 Kafka 自带的 Zookeeper了,而是单独搭建一个高版本的 Zookeeper 集群

1、集群搭建的核心就是对 zookeeper-3.5.6/conf 目录下的 zoo.cfg 进行修改

这里的 zoo.cfg 文件的配置可以完全仿照 Kafka 的 zookeeper.properties 文件

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"

你可能感兴趣的:(#,Zookeeper,不使用自带zookeeper,版本过低,搭建zookeeper集群)