- 打开Ubuntu虚拟机
- 进入zookeeper安装目录
gb@gb-VMware-Virtual-Platform:~$ cd /usr/apache-zookeeper-3.9.3-bin
- 在终端启动zookeeper服务
gb@gb-VMware-Virtual-Platform:/usr/apache-zookeeper-3.9.3-bin$ sudo bin/zkServer.sh start
- 检查zookeeper进程
gb@gb-VMware-Virtual-Platform:/usr/apache-zookeeper-3.9.3-bin$ ps -ef | grep zookeeper
- 进入kafka安装目录
gb@gb-VMware-Virtual-Platform:/usr/apache-zookeeper-3.9.3-bin$ cd /home/gb/下载/kafka
- 在终端启动kafka服务 ``