반응형
Recent Posts
Recent Comments
관리 메뉴

개발잡부

Elasticsearch 7.9.2 multi hosts 본문

ElasticStack/System

Elasticsearch 7.9.2 multi hosts

닉의네임 2021. 7. 6. 15:50
반응형

시스템환경 

OS: aws Linux 

 

 

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.2-linux-x86_64.tar.gz.sha512

sudo yum install -y perl-Digest-SHA

shasum -a 512 -c elasticsearch-7.9.2-linux-x86_64.tar.gz.sha512 
tar -xzf elasticsearch-7.9.2-linux-x86_64.tar.gz
cd elasticsearch-7.9.2/

 

ca 인증서 저장 (패스워드 등록안함)

> bin/elasticsearch-certutil ca

> bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12

 

 

elastic-stack-ca.p12

elastic-certificates.p12

파일을 config 폴더로 복사

 

다른서버로 넘겨보자 scp

 


scp 파일 계정@아이피:/elastic (경로)

 

 

타겟서버 세팅

https://stackoverflow.com/questions/36300446/ssh-permission-denied-publickey-gssapi-with-mic

 

Elasticsearch 구동 후 패스워드 등록

> bin/elasticsearch-setup-passwords interactive

 

 

elasticserch.yml

xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.verification_mode: certificate
xpack.security.http.ssl.keystore.path: elastic-certificates.p12      
xpack.security.http.ssl.truststore.path: elastic-certificates.p12
반응형

'ElasticStack > System' 카테고리의 다른 글

[es] logrotate  (0) 2022.09.15
[docker] docker-compose 로 로컬테스트 환경구축하기  (0) 2022.01.07
DNS 캐시 설정  (0) 2020.08.12
스레드 수  (0) 2020.08.12
가상 메모리  (0) 2020.08.12
Comments