Skip to content

Deploy Elasticsearch to dedicated server

Setup Java

Download and install Java.

Create a system environment variable JAVA_HOME and enter the path to Java folder as its value: Add the JAVA_HOME variable to OS

Setup Elasticsearch

Download Elasticsearch 1.7.5.

Extract all files.

Run command promt as administrator and change current directory to \bin.

Register and start Elasticsearch as Windows service by running the following commands:

service install
service start

Installing and starting ElascticSearch service

Navigate toВ http://localhost:9200В in your browser. You should see Elasticsearch status inВ JSON format:

  "status" : 200,
  "name" : "Aireo",
  "version" : {
    "number" : "1.1.1",
    "build_hash" : "f1585f096d3f3985e73456debdc1a0745f512bbc",
    "build_timestamp" : "2014-04-16T14:27:12Z",
    "build_snapshot" : false,
    "lucene_version" : "4.7"
  "tagline" : "You Know, for Search"

If you wish Elasticsearch to start when Windows starts run the following command in the same command prompt:

sc config elasticsearch-service-x64 start=auto

whereВ elasticsearch-service-x64 is the name of the installed Elasticsearch service.

Last update: June 18, 2020