Terriermon - Digimon

우분투 서버에 카프카 설치

2024. 8. 7. 13:07클라우드

1. Java 설치: Kafka는 Java로 작성되었기 때문에 Java가 필요함

OpenJDK를 설치

 

$ sudo apt update

$ sudo apt install openjdk-11-jre-headless

 

java 설치가 되었는지 확인

$ java -version

 

https://www.apache.org/dyn/closer.cgi?path=/kafka/3.6.0/kafka_2.13-3.6.0.tgz

 

Apache Download Mirrors

The requested file or directory is not on the mirrors. The object is in our archive : https://archive.apache.org/dist/kafka/3.6.0/kafka_2.13-3.6.0.tgz Verify the integrity of the files It is essential that you verify the integrity of the downloaded file us

www.apache.org

 

위 사이트에서 카프카 다운로드

 

- 카프카 설치
$ wget https://archive.apache.org/dist/kafka/3.6.0/kafka_2.13-3.6.0.tgz
$ tar -xzf kafka_2.13-3.6.0.tgz

- 카프카 실행
$ cd kafka_2.13-3.6.0
$ bin/kafka-server-start.sh config/server.properties

- 카프카 설치 확인
$ bin/kafka-topics.sh --version

 

 

3.6.0 버전 확인

반응형