Monday, September 22, 2014

How to install Elasticsearch on Windows

Installation:

1. Download elasticsearch from website: (.zip file for windows)
http://www.elasticsearch.org/overview/elkdownloads/

2. Unzip the file, and find the /bin directory, for example:
C:\Users\Quan\Downloads\elasticsearch-1.3.2\elasticsearch-1.3.2\bin

3. Open up your command line, and get into the /bin directory, for example:
cd C:\Users\Quan\Downloads\elasticsearch-1.3.2\elasticsearch-1.3.2\bin

4. And then run file "elasticsearch.bat" in the command line,
elasticsearch.bat

You will see this:

 5. Finally, browse this URL in your browswer:
http://localhost:9200/

If you see this code, then you have successfully start your elasticsearch server!
{
  "status" : 200,
  "name" : "Quan",
  "version" : {
    "number" : "1.3.2",
    "build_hash" : "dee175dbe2f254f3f26992f5d7591939aaefd12f",
    "build_timestamp" : "2014-08-13T14:29:30Z",
    "build_snapshot" : false,
    "lucene_version" : "4.9"
  },
  "tagline" : "You Know, for Search"
}

No comments:

Post a Comment