Skip to content

Instantly share code, notes, and snippets.

@jacqueswww
Last active December 1, 2015 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacqueswww/ab2ad08ea466d2ccdc99 to your computer and use it in GitHub Desktop.
Save jacqueswww/ab2ad08ea466d2ccdc99 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get install openjdk-7-jre
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
sudo apt-get update && sudo apt-get install elasticsearch
sudo update-rc.d elasticsearch defaults 95 10
sudo service elasticsearch start
@albertnel
Copy link

@jacqueswww last command, just a typo, should be sudo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment