java -version
查看本地是否已经安装JDK(我本地是比较干净的,并没有系统自带的jdk,所以不需要删除)
tar -zxvf 包名
vim /etc/profile
export JAVA_HOME=/rpm/kafka/jdk-13.0.1
export CLASSPATH=.:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
export PATH=$PATH:${JAVA_HOME}/bin
source /etc/profile
让配置生效java -version
wgethttp://mirror.bit.edu.cn/apache/kafka/2.4.0/kafka-2.4.0-src.tgz
tar -zxvf kafka-2.4.0-src.tgz
vim config/server.properties
bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
bin/kafka-server-start.sh -daemon config/server.properties
本文为北溟有鱼QAQ原创文章,转载无需和我联系,但请注明来自北溟有鱼QAQ