Oracle Linux는 RHEL 을 BaseOS로 채택하여 구성된 OS이다. Elastic Search의 공식 홈페이지에서 RPM 패키지를 통해 Elastic Search를 설치하는 방법에 대하여 설명되어 있다.
이 과정에서 LogStash와 Kibana까지 설치하여 RedHat Linux 서버 시스템 또는 Oracle Linux 서버 시스템에서 ELK 환경을 설치하는 것을 설명하고자 한다.
https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html
Install Elasticsearch with RPM | Elasticsearch Guide [8.11] | Elastic
On systemd-based distributions, the installation scripts will attempt to set kernel parameters (e.g., vm.max_map_count); you can skip this by masking the systemd-sysctl.service unit.
www.elastic.co
1. Elastic Search Repository 등록
cat <<EOF > /etc/yum.repos.d/elastic-8.x.repo
[elasticsearch]
name=Elasticsearch repository for 8.x packages
baseurl=https://artifacts.elastic.co/packages/8.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
autorefresh=1
type=rpm-md
EOF
2. Elastic Search Repo 활성화 & Elastic Search 설치
sudo yum install --enablerepo=elasticsearch elasticsearch -y
3. LogStash, Kibana 설치
# LogStash 설치
sudo yum install --enablerepo=elasticsearch logstash -y
2. Kibana 설치
sudo yum install --enablerepo=elasticsearch kibana -y
4. Elastic Search, Logstash, Kibana 설정 이후 서비스 등록
# enable es & restart
sudo systemctl enable elasticsearch
sudo systemctl restart elasticsearch
# enable logstash & restart
sudo systemctl enable logstash
sudo systemctl restart logstash
# enable kibana & restart
sudo systemctl enable kibana
sudo systemctl restart kibana
'TroubleShootings > 삽질 예방 접종 센터' 카테고리의 다른 글
[Linux] OpenSuse Linux에 kubernetes 설치 (2023.12) (0) | 2023.11.29 |
---|---|
[Linux] OpenSuse Linux mongodb installation (0) | 2023.11.29 |
[Linux] (RedHat) Oracle Linux 8/9 서버에 Docker 설치하기 (2023.11) (0) | 2023.11.23 |
[Linux] RedHat Linux 8/9, Oracle Linux 8/9 MongoDB 7.x 설치방법 (2023.11) (0) | 2023.11.23 |
[Linux] CentOS 8 에서 Docker & Kubernetes 한번에 설치 (0) | 2023.11.22 |