Skip to content

Instantly share code, notes, and snippets.

@pistocop
Created June 9, 2022 15:14
Show Gist options
  • Save pistocop/8806cb61e79fd99235b8502f9d96e719 to your computer and use it in GitHub Desktop.
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)
#!/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