mkdir /home/XXX/usr/javajava
cd softlinux
tar -zxvf jdk-8u201-linux-x64.tar.gzvim
mv jdk1.8.0_201/ /home/XXX/usr/java/bash
目錄:/home/XXX/usr/java/jdk1.8.0_201日誌
vim .bash_profileserver
export PATH=$PATH:$HOME/usr/java/jdk1.8.0_201/binkafka
source .bash_profileio
java -version變量
mkdir /home/XXX/usr/kafkazookeeper
mkdir /home/XXX/usr/local/kafka-logs
mkdir /home/XXX/usr/zookeeper
cd soft
tar -zxvf kafka_2.12-2.2.0.tgz
mv kafka_2.12-2.2.0 /home/XXX/usr/kafka/
cd /home/XXX/usr/kafka/bin
+++++++++++++++++++++++++
cd soft
tar -zxvf zookeeper-3.4.14.tar.gz
mv zookeeper-3.4.14 /home/XXX/usr/zookeeper/
cd /home/XXX/usr/zookeeper/zookeeper-3.4.14/conf
mv zoo_sample.cfg zoo.cfg
cd /home/XXX/usr/zookeeper/zookeeper-3.4.14/bin && sh zkServer.sh start
vi /home/homeward/usr/kafka/kafka_2.12-2.2.0/config/server.properties
broker.id=1 //節點數
log.dir=/home/XXX/usr/local/kafka-logs //存放日誌路徑
cd /home/XXX/usr/kafka/kafka_2.12-2.2.0/bin && nohup ./kafka-server-start.sh ../config/server.properties &