Created
June 9, 2022 15:14
-
-
Save pistocop/8806cb61e79fd99235b8502f9d96e719 to your computer and use it in GitHub Desktop.
Install Elasticsearch client on Debian VM and launch the service using systemclt (from official documentation)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# From official documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html | |
sudo apt install wget | |
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg | |
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.2.2-amd64.deb | |
sudo dpkg -i elasticsearch-8.2.2-amd64.deb | |
sudo /bin/systemctl daemon-reload | |
sudo /bin/systemctl enable elasticsearch.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment