Rocky Linux는 RHEL(Red Hat Enterprise Linux)과 호환되는 엔터프라이즈급 리눅스 배포판입니다. Redpanda는 공식적으로 Rocky Linux를 직접 지원하지 않지만, RHEL/CentOS 계열과 호환되므로 아래와 같이 설치할 수 있습니다.
목차
Toggle1. 시스템 준비
- Rocky Linux가 설치되어 있고, 인터넷이 연결되어 있는지 확인합니다.
- 시스템 패키지를 최신 상태로 업데이트합니다.
bashsudo dnf update -y
2. Redpanda 저장소 추가
Redpanda는 기본적으로 Debian 계열 설치 예시가 많지만, RHEL/Alma/CentOS/Rocky 계열에서는 공식 YUM 저장소를 추가해야 합니다.
bashsudo rpm --import https://packages.redpanda.com/redpanda/redpanda-public.key
curl -1sLf 'https://dl.redpanda.com/nzc4ZYQK3WRGd9sy/redpanda/cfg/setup/bash.rpm.sh' | sudo -E bash
3. Redpanda 설치
bashsudo dnf install redpanda -y
설치가 완료되면 Redpanda 바이너리와 rpk CLI가 함께 설치됩니다.
4. Redpanda 서비스 시작
개발(테스트) 환경에서는 다음과 같이 Redpanda를 실행할 수 있습니다.
bashsudo systemctl enable --now redpanda
5. 프로덕션 모드 및 튜닝(선택)
최적의 성능을 위해 프로덕션 모드로 전환하고 자동 튜닝을 적용합니다.
bashsudo rpk redpanda mode production
sudo rpk tune all
6. 설치 확인
설치 및 실행 상태를 확인합니다.
bashrpk cluster info
또는
bashsystemctl status redpanda
참고
- rpk 바이너리만 별도로 설치하려면 공식 문서의 리눅스용 rpk 설치 가이드에 따라 zip 파일을 내려받아
~/.local/bin
에 압축 해제 후 PATH를 추가하면 됩니다1. - Rocky Linux 8/9 모두 위 방법으로 설치 가능합니다.
- 공식 문서나 최신 가이드는 Redpanda Docs에서 확인할 수 있습니다.
요약
Rocky Linux에 Redpanda를 설치하려면 저장소를 등록하고, dnf로 패키지를 설치한 뒤 서비스를 실행하면 됩니다. 추가로 rpk CLI를 활용해 클러스터 관리 및 튜닝이 가능합니다12.
Citations:
- https://docs.redpanda.com/current/get-started/rpk-install/
- https://citizix.com/how-to-install-and-configure-redpanda-on-debian-11/
- https://codehome.tistory.com/23
- https://citizix.com/how-to-install-and-configure-redpanda-on-ubuntu-22-04/
- https://cozy-dev-area.tistory.com/98
- https://velog.io/@calintzcs/%EC%84%A4%EC%B9%98-Rocky-Linux-8.x-Minimal-%EC%84%A4%EC%B9%98LegacyUEFI
- https://wikidocs.net/249226
- https://wikidocs.net/278181
- https://docs.redpanda.com/current/deploy/deployment-option/self-hosted/manual/
- https://docs.discord.red/en/stable/install_guides/rocky-linux-8.html
- https://junyharang.tistory.com/421
- https://github.com/redpanda-data/redpanda/issues/6313
- https://docs.rockylinux.org/ko/guides/package_management/dnf_package_manager/
- https://blog.naver.com/ahtid/222868544298
- https://forums.rockylinux.org/t/rocky-8-7-stable-diffusion-v2/8550
- https://manboha.github.io/post/2022-07-05-rocky-rstudio-shiny-install/
- https://docs.redpanda.com/redpanda-cloud/manage/rpk/rpk-install/
- https://askubuntu.com/questions/1357149/why-am-i-getting-failed-to-start-redpanda-service-unit-redpanda-service-not-fo
- https://la-reveuse.tistory.com/65
- https://blog.naver.com/zkslqkfo/223057047053