Main configuration:
$ sudo nano /etc/default/elasticsearch
Configuration file
$ sudo nano /etc/elasticsearch/elasticsearch.yml
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| # download and install | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb | |
| sudo dpkg -i elasticsearch-1.1.1.deb | |
| sudo rm -rf elasticsearch-1.1.1.deb | |
| sudo service elasticsearch start | |
| #curl http://localhost:9200 |