Planning to keep this as simple and helpful as I can.
This whole process can be done in just a few minutes, assuming your downloads happen quickly.
- Log in to your server with credentials that allow software installation.
- Download Elasticsearch (latest. 1.5.2 used in this example) as a ZIP file from https://www.elastic.co/downloads/elasticsearch
- Unzip the file you just downloaded.
- Copy the child Elasticsearch1.5.2 folder and contents to C:\elasticsearch-1.5.2, or wherever you want it.
- (You should have this path: D:\elasticsearch-1.5.2\bin )
- Run command prompt as administrator
- Navigate to C:\elasticsearch-1.5.2\bin
- Type service.bat install and hit Enter.
- It should install as a 64 bit service:
- Close command prompt
- Open services console, and find Elasticsearch service.
- Open Elasticsearch service properties and set the service to start automatically and then start service.
- In a browser on the server, go to http://localhost:9200/
- You should see something like this (Note that the “name” is randomly selected from a list of around 3000 Marvel characters.):
Setting up multiple nodes is beyond the scope of this article.
Elasticsearch is amazing, and running as a Windows Service is nice, because you don’t have to make sure you start it manually each time.