Last active
August 29, 2015 14:08
-
-
Save danmatthews/8bdf9da57845fe29bbba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo -s | |
# Update Aptitude | |
sudo apt-get update | |
# Install Java | |
sudo apt-get install openjdk-7-jre-headless -y | |
# Download and install Elasticsearch Public Signing Key | |
sudo wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
# Add repository | |
sudo echo "deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main" > /etc/apt/sources.list.d/elasticsearch.list | |
# Update Aptitude | |
sudo apt-get update | |
# Install Elasticsearch | |
sudo apt-get install elasticsearch | |
# Set Elasticsearch to run on startup | |
sudo update-rc.d elasticsearch defaults 95 10 | |
# Start Elasticsearch server | |
sudo /etc/init.d/elasticsearch start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment