Install elasticsearch (not finished)

安装 es
https://rharshad.com/setup-elasticsearch-cluster-aws-ec2/
https://www.youtube.com/watch?v=NDz1sunqlho&t=323s

备份es to s3
https://opensearch.org/docs/latest/opensearch/snapshots/snapshot-restore/#take-snapshots

sudo amazon-linux-extras install java-openjdk11

export java_home=/usr/lib/jvm/java-11-openjdk-amd64

rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch

sudo nano /etc/yum.repos.d/elasticsearch.repo

sudo /bin/systemctl enable elasticsearch.service

curl -X GET “localhost:9200/”

sudo nano /etc/elasticsearch/elaticserach.yml

sudo systemctl restart elasticsearch

sudo systemctl status elasticsearch

curl -X GET “http://localhost:9200/”

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Leave a Reply