Test environment:
Ubuntu x86_64
3.13.0-35-generic
To install the JRE:
$ sudo apt-get install software-properties-Common $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install Oracle-java7-installer
< Span class= "K" > < span class= "n" > < span class= "n" >
Join elasticsearch official source and install elasticsearch
$ wget--no-check-certificate-o-http:///packages.elasticsearch.org/gpg-key-elasticsearch | sudo apt-key Add-"deb Http://packages.elasticsearch.org/elasticsearch/1.1/debian stable main" >>/etc/apt/sources.list $ sudo apt-get update $ sudo apt-get Install Elasticsearch
< span class= "n" > < span class= "n" > < span class= "n" >
$ sudo update-rc.d elasticsearch defaults 95 1
< Span class= "o" > < Span class= "o" > < span class= "n" >
Start elasticsearch service
$ sudo/etc/init.d/elasticsearch start 'http://localhost:9200'
Ubuntu Installation Elasticsearch