Elasticsearch는 HTTP 웹 인터페이스와 스키마에서 자유로운 JSON 문서와 함께 분산 멀티테넌트 지원 전문인 루씬 기반 검색 엔진이다.
설치
https://www.elastic.co/guide/en/elasticsearch/reference/7.10/deb.html#deb-repo
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
sudo apt-get update && sudo apt-get install elasticsearch
생성 경로 확인 ( 설치 정상 확인 )
/usr/share/elasticsearch
/etc/elasticsearch
/etc/init.d/elasticsearch
elasticsearch 설정 파일 내용 수정
nano /etc/elasticsearch/elasticsearch.yml
network.host : 0.0.0.0
cluster.initial_master_nodes: elasticsearch.local # 주석 해체후 변경
elasticsearch 서비스 시작
systemctl start elasticsearch.service
elasticsearch 포트 확인
netstat -ant | grep 9200

Elasticsearch 포트 방화벽 해체
firewall-cmd --permanent --zone=public --add-port=9200/tcp
만약 firewall 다운이 안받아져있을 경우
apt-get install firewalld
웹 사이트 접속 elasticsearch 서비스 상태 확인
http://localhost:9200/
