利用zookeeper部署kafka集群
1.准备工作: iptables -F #关闭防火墙 systemctl stop firewalld.service #关闭防火墙 准备三台虚拟机并放入/etc/hosts下 192.168.100.242 testceph 192.168.100.244 redis1 192.168.100.245 redis2 将testceph的/etc/hosts文件拷贝到其他两台虚拟机上 命令: [root@testceph ~]# for i in 244 245 > do > scp /etc/hosts 192.168.100.$i:/etc/ > done root@192.168.100.244's password: 输入密码 hosts 100% 238 231.1KB/s 00:00 root@192.168.100.245's password: 输入密码 hosts 100% 238 418.2KB/s 00:00 2.安装依赖包 [root@testceph ~]yum install -y gcc g++ make gcc-c++ kernel-devel automake autoconf libtool make wget tcl vim unzip git java 3.准备 zookeeper目录 三个节点 192.168.100.242 192.168