赞
踩
链接:https://pan.baidu.com/s/185mu1jqgrKyojZp232GBTw
提取码:4k2f
tar -zxvf jdk-8u321-linux-x64.tar.gz
- export JAVA_HOME=/opt/jdk1.8.0_321
- export JRE_HOME=$JAVA_HOME/jre
- export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
- export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
2.安装kafka
链接:https://pan.baidu.com/s/1C8hLbPiotytkOoMZBtzHDw
提取码:pgew
tar -zxvf kafka_2.12-3.2.3.tgz
cd kafka_2.12-3.2.3
KAFKA_CLUSTER_ID="$(bin/kafka-storage.sh random-uuid)"
bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties
bin/kafka-server-start.sh config/kraft/server.properties
./bin/kafka-topics.sh --create --topic test --bootstrap-server localhost:9092
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。