How To Install Elasticsearch As A Service?

How to install Elasticsearch as a Service?

Issue Description: How to install Elasticsearch as a Windows Service?

Steps:

  1. Open command prompt. Navigate to the bin folder of Elasticsearch installation.

  1. Run the command - elasticsearch-service.bat install
  2. The following screen print should appear confirming us with the service installation:

  1. Next, start Elasticsearch as a service. When Elasticsearch starts, authentication is enabled by default:
  • Command : C:\elasticsearch-8.9.0\bin>bin\elasticsearch-service.bat start
  1. The following window depicts a successful start of the Elastic search service:

rahul.jpg