centos7 kafka安装

环境:CentOS Linux release 7.4.1708 (Core)

本机ip:192.168.2.10

安装:jdk1.8.0_121

           zookeeper-3.4.13

           kafka_2.11-1.0.0

 

操作:1.安装jdk

链接:https://pan.baidu.com/s/1P-Lu8WVlfTmmhJ7WU6Zhfg 
提取码:40lc 
复制这段内容后打开百度网盘手机App,操作更方便哦

# cd /opt/install/
# tar zxvf jdk-8u121-linux-x64.tar
# mv jdk1.8.0_121 /opt/
# cd /opt/jdk1.8.0_121
# /opt/jdk1.8.0_121/bin/java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

设置环境变量

 

# vim /etc/profile

(编辑profile文件,跳到最后一行,加入以下信息↓↓↓↓↓↓↓)

export JAVA_HOME=/opt/jdk1.8.0_121
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar 
PATH=$JAVA_HOME/bin:$HOME/bin:$HOME/.local/bin:$PATH

# source /etc/profile
# java -version
java ver

你可能感兴趣的:(kafka)