Last active
December 1, 2015 12:14
-
-
Save jacqueswww/ab2ad08ea466d2ccdc99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jacqueswww last command, just a typo, should be
sudo
.