vi /etc/elasticsearch/elasticsearch.yml
Bash
복사
아래 내용 추가
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
Bash
복사
재시작
sudo systemctl restart elasticsearch
Bash
복사
패스워드 설정
cd /usr/share/elasticsearch
./bin/elasticsearch-setup-passwords interactive
Bash
복사
키바나 수정
vi /etc/kibana/kibana.yml
Bash
복사
키스토어 생성
cd /usr/share/kibana/
./bin/kibana-keystore create
./bin/kibana-keystore add elasticsearch.password
Bash
복사