Elastic Search: Install and Running Elastic Search v2.4.0 as a Service on Windows OS

Standard

Step 1: 

Open Java folder from window explorer and copy file-path
2016-09-16-12_43_08-jre1-8-0_102

Step 2: 

Set JAVA_HOME environment variable and set value of JAVA file path copied from above step. Follow the step mentioned in below pic to achieve desired result.
2016-09-16-12_55_05-bin

Step 3: 

After unzipping downloaded file, Go to path\elasticsearch and then Go to folder Config

2016-09-16-10_56_57-config

Step 4: 

Open elasticsearch.yml, UNCOMMENT and UPDATE cluster.name and node.name with your own values for cluster and node and save the file.
2016-09-16-10_59_24-c__elasticsearch_config_elasticsearch-yml-notepad

Step 5: 

Open CMD and lead to folder where elastic search has been unzipped and direct to Bin folder, e.g.

2016-09-20-11_13_41-bin

C:\ElasticSearch\bin

Step 6: 

Install Elastic Search using service.bat from Bin folder in CMD

C:\ElasticSearch\bin>service.bat install

2016-09-20-11_15_50-administrator_-elasticsearch-service-2-4-0

Step 7: 

Now configure service using manager command

C:\ElasticSearch\bin>service.bat manager

2016-09-20-11_16_32-program-manager

Step 8: 

Set Startup Type to Automatic then click on Start Button and Press OK button to confirm changes

2016-09-20-11_16_53-program-manager

Service would be registering and activating now:

2016-09-20-11_17_26-elasticsearch-2-4-0-elasticsearch-service-x64-properties

2016-09-20-11_17_42-administrator_-elasticsearch-service-2-4-0

Optional(If you prefer CMD over GUI):

You may also install, remove, manage or configure the service and potentially start and stop the service, all from the command-line.

c:\ElasticSearch\bin>service.bat command

sample example: service.bat install|remove|start|stop|manager

The commands available are:

install Install Elasticsearch as a service
remove Remove the installed Elasticsearch service (and stop the service if started)
start Start the Elasticsearch service (if installed)
stop Stop the Elasticsearch service (if started)
manager Start a GUI for managing the installed service

Step 9: 

In order to make sure Elastic Search is up and running, Click Start , click in the Start Search box, type services.msc , and then press ENTER.
2016-09-16-11_01_18-run
2016-09-20-11_21_13-localhost_9200

Step 10: 

Make sure service is up and running by typing http://localhost:9200/ in your browser.
2016-09-16-11_05_32-localhost_9200

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s