Created
August 3, 2014 08:58
-
-
Save lukaswhite/c50a6cf82ce0b7aa6b2a to your computer and use it in GitHub Desktop.
Installing Elasticsearch on Laravel Homestead
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
# Install Java | |
sudo apt-get install openjdk-7-jre-headless -y | |
# Download & install the Public Signing Key | |
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
# Add the following to /etc/apt/sources.list | |
deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main | |
# Update Aptitude | |
sudo apt-get update | |
# Install Elasticsearch | |
sudo apt-get install elasticsearch | |
# Configure Elasticsearch to run on startup | |
sudo update-rc.d elasticsearch defaults 95 10 | |
# Start the server now | |
sudo /etc/init.d/elasticsearch start | |
# Test whether it's working | |
curl -X GET localhost:9200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
5.3 Download
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.0.deb
sudo dpkg -i elasticsearch-5.3.0.deb
Configure Elasticsearch to run on startup
sudo update-rc.d elasticsearch defaults 95 10
Start the server now
sudo /etc/init.d/elasticsearch start
Test whether it's working
curl -X GET localhost:9200