Skip to content

Instantly share code, notes, and snippets.

@faisalmahmud
Last active January 27, 2020 19:19
Show Gist options
  • Save faisalmahmud/a0b1dd911d4bbeeca4da888fcb82f532 to your computer and use it in GitHub Desktop.
Save faisalmahmud/a0b1dd911d4bbeeca4da888fcb82f532 to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install apt-transport-https openjdk-8-jre-headless
sudo wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-6.x.list
sudo apt-get update && sudo apt-get install elasticsearch
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service
sudo ls -la /var/log/elasticsearch/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment