Configuring Elasticsearch to run as a Windows service

By default, Elasticsearch runs on the command line. You can install it as a Windows service that runs in the background and starts automatically at boot time without user interaction.

  1. In the command window where Elasticsearch is running, stop it by pressing Ctrl+C.
  2. Run the following command to set up Elasticsearch as a service:
    .\bin\elasticsearch-service.bat install
  3. Start the tool for managing the Elasticsearch service configuration settings:
    .\bin\elasticsearch-service.bat manager
  4. In the Properties window, set the Startup type to Automatic, then click Start, and OK.
You can check the service status in the Windows Services Console, for example: