Skip to content

Instantly share code, notes, and snippets.

@vkhazin
Last active March 28, 2019 13:28
Show Gist options
  • Save vkhazin/998b73ddd7301209fc5bc18f5945eb2e to your computer and use it in GitHub Desktop.
Save vkhazin/998b73ddd7301209fc5bc18f5945eb2e to your computer and use it in GitHub Desktop.
Install ElasticSearch on ubuntu 16.04
sudo apt-get update && sudo apt-get install apt-transport-https -y &&
sudo apt-get install default-jre -y &&
curl https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - &&
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" \
| sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list &&
sudo apt-get update && sudo apt-get install elasticsearch &&
sudo systemctl enable elasticsearch.service &&
sudo service elasticsearch start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment