Elasticsearch can be installed as a service to run in the background or start automatically at boot time without any user interaction. This can be achieved upon installation using the following command line options

  • INSTALLASSERVICE=true
  • STARTAFTERINSTALL=true
  • STARTWHENWINDOWSSTARTS=true

Once installed, Elasticsearch will appear within the Services control panel:

Installing Elasticsearch as a Service on Windows

and can be stopped and restarted from within the control panel, or from the command line using:

with Command Prompt:

sc.exe stop Elasticsearch
sc.exe start Elasticsearch

note:Run cmd  with administrator privileges 。

Installing Elasticsearch as a Service on Windows

with PowerShell:

Get-Service Elasticsearch | Stop-Service | Start-Service

Changes can be made to jvm.options and elasticsearch.yml configuration files to configure the service after installation. Most changes (like JVM settings) will require a restart of the service in order to take effect.

 

 

 

 

 

 

 

 

相关文章:

  • 2021-04-24
  • 2021-07-18
  • 2021-12-03
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-12-13
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2021-08-04
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-05-29
相关资源
相似解决方案