I have a VM running Ubuntu 12.04, and am trying to install ElasticSearch. I have followed this gist in the best \'learn X the hard way\' spirit, and everything installs fine - p
follow this step and easily configer an Elastic Search.
Step 1 — Installing Java :
$ sudo apt-get update $ sudo apt-get install openjdk-7-jre $ java -version
Step 2 — Downloading and Installing Elasticsearch :
$ wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.2.deb $ sudo dpkg -i elasticsearch-1.7.2.deb $ sudo update-rc.d elasticsearch defaults
Step 3 — Configuring Elastic :
$ sudo nano /etc/elasticsearch/elasticsearch.yml
node.name: "My First Node" cluster.name: mycluster1
$ sudo service elasticsearch start
Step 4 — Securing Elastic :
$ sudo nano /etc/elasticsearch/elasticsearch.yml
network.bind_host: localhost
script.disable_dynamic: true
Step 5 — Testing :
$ curl -X GET 'http://localhost:9200' or run http://localhost:9200 in any browser.
You should see the following response:
{
"status" : 200,
"name" : "Harry Leland",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.7.2",
"build_hash" : "e43676b1385b8125d647f593f7202acbd816e8ec",
"build_timestamp" : "2015-09-14T09:49:53Z",
"build_snapshot" : false,
"lucene_version" : "4.10.4"
},
"tagline" : "You Know, for Search"
}
Refrence By:
http://laravelcode.com/post/how-to-install-elastic-search-in-local-system-and-live-server