linux environment installation kafka

  linux installation kafka, first make sure zookeeper has been successfully installed, want to install zookeeper, you must first install the jdk in linux.

Let's turn to start the installation jdk, zookeeper, kafka.

A: install jdk:

  grep jdk | 1. Check the linux environment whether you can use the jdk java -version or rpm -qa installation.

  2. Download jdk-8u221-linux-x64.tar.gz. You can download the official website, can also be downloaded from the Baidu cloud disk, Baidu cloud disk has jdk, zookeeper, kafka installation package

    https://pan.baidu.com/s/1JjAS4VXRVzPkwuxylJnk4w extraction code: 79i1.

  3. After downloading to the local use rz command to install the packet to be passed linux server usr / local / java directory.

  4. The command is then decompressed with decompression tar -zxvf jdk-8u221-linux- x64.tar.gz.

  5. Configuration jdk environment variables: Profile File Edit / etc / under: vi / etc / profile

   Add the following configuration at the end of the file:

   export JAVA_HOME=/usr/local/java/jdk1.8.0_162

   export JRE_HOME=${JAVA_HOME}/jre

   export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib

   export PATH=${JAVA_HOME}/bin:$PATH

   Jdk path is marked in red extraction path, according to the actual situation, save the configuration file and exit.

  6. the / etc / profile to take effect: source / etc / profile

  7. Test jdk installation was successful: java -version

II: Installation zookeeper:

 

 

  

  

Guess you like

Origin www.cnblogs.com/fzdsy/p/11482583.html