Skip to content

Instantly share code, notes, and snippets.

@Hirurg103
Last active June 7, 2016 20:33
Show Gist options
  • Save Hirurg103/bf1ea58d67a6640c3e44817bc868b884 to your computer and use it in GitHub Desktop.
Save Hirurg103/bf1ea58d67a6640c3e44817bc868b884 to your computer and use it in GitHub Desktop.
Script which installs elasticsearch
sudo apt-get update
sudo apt-get install openjdk-9-jre
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.3.0.deb
sudo dpkg -i elasticsearch-2.3.0.deb
sudo update-rc.d elasticsearch defaults
# remove
sudo dpkg -r elasticsearch
sudo dpkg -P elasticsearch # remove configuration
sudo apt-get remove openjdk-9-jre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment