Home > Article > Computer Tutorials > How to install Apache Kafka on Rocky Linux?
To install Apache Kafka on Rocky Linux, you can follow the steps below:
sudo yum update
sudo yum install java-1.8.0-openjdk-devel
) Download the latest binary package. Choose a stable version and download the compressed package, for example:
wget
Unzip the downloaded compressed package:
tar -xzf kafka_2.13-2.8.0.tgz
~/.bashrc
file and add the following lines to set the Kafka installation directory: export KAFKA_HOME=/path/to/kafka_2.13-2.8.0export PATH=$PATH:$KAFKA_HOME/bin
Make the configuration effective:
source ~/.bashrc
cd $KAFKA_HOMEbin/zookeeper-server-start.sh config/zookeeper.properties
cd $KAFKA_HOMEbin/kafka-server-start.sh config/server.properties
At this point, you have successfully installed and started Apache Kafka. You can continue to configure and use Kafka to create topics, produce and consume messages, etc. Please note that the above steps only cover the basic installation and startup of Kafka. For specific configuration and usage, please refer to the official Apache Kafka documentation and related resources for more detailed instructions and examples.
The above is the detailed content of How to install Apache Kafka on Rocky Linux?. For more information, please follow other related articles on the PHP Chinese website!