ELK: Add Elasticsearch, Logstash, and Kibana as background services under Windows

Table of contents

1. Elasticsearch adds background services

2. Logstash is added as a background service

3. kibana is added as a background service


1. Elasticsearch adds background services

Run the CMD window in administrator mode , enter the bin directory of elasticsearch, and run:

elasticsearch-service.bat install

, the display is as follows after running.

 It shows that the service has been installed. Now enter the service window under Windows to see the installed elasticsearch service.

2. Logstash is added as a background service

Logstash uses NSSM to add background services. The NSSM download address is: http://www.nssm.cc/download.

After decompression

Place the corresponding nssm.exe file under "D:\devsofts\elk7.6.2".

 Switch to the bin directory of logstash and create the "run-logstash.bat" file. After the editor is opened, write the following code:

logstash.bat -f ./logstash.conf

Save and exit.

Run the CMD window in administrator mode , switch to the exe directory, and execute "nssm.exe install logstash".

The following window will pop up, select the bin directory of logstash. Click "Install Serviec" to install.

  After the above interface appears, go to "Services" to start logstash.

3. kibana is added as a background service

Kibana also uses NSSM to add background services. The NSSM download address is: http://www.nssm.cc/download.

After decompression

 Place the corresponding nssm.exe file under "D:\devsofts\elk7.6.2".

 Run the CMD window in administrator mode , switch to the exe directory, execute "nssm.exe install kibana", the following window will pop up, select the kibana directory. Click "Install Serviec" to install.

 After the installation is successful, you can see the kibana service in the "Services" window. At this point, you can manually start and stop the service in the background.

Guess you like

Origin blog.csdn.net/louis_lee7812/article/details/127018598