tar -zxvf zookeeper-3.4.8.tar.gz cd zookeeper-3.4.8/conf mv zoo_sample.cfg zoo.cfg cd .. ./bin/zkServer.sh start # 开启后可以用下面命令检测是否运行成功 ps aux |grep zookeeper
3、安装kafka
1、运行kafka
tar -zxvf kafka.tgz cd /opt/kafka/bin nohup ./kafka-server-start.sh /opt/kafka/config/server.properties &