Forked from lukaswhite/elasticsearch-on-homestead.txt
Last active
August 29, 2015 14:17
-
-
Save mrah/137d883a04b0fef31dbb 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
| # Login as root | |
| sudo -s | |
| # Install Java | |
| 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 | |
| apt-get update | |
| # Install Elasticsearch | |
| apt-get install elasticsearch | |
| # Configure Elasticsearch to run on startup | |
| update-rc.d elasticsearch defaults 95 10 | |
| # Start the server now | |
| /etc/init.d/elasticsearch start | |
| # Test whether it's working | |
| curl -X GET localhost:9200 | |
| # Configure homestead.rb | |
| config.vm.network "forwarded_port", guest: 9200, host: 62000 | |
| # Reload Vagrant | |
| vagrant reload | |
| # Make curl request for test | |
| curl -X GET localhost:62000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment