Windows services are in many ways similar to Unix daemons. A primary advantage of running software in this way, is that it can launch and run independently of user logins.
This property is especially useful when when planning for events, such as unplanned reboots where one would want software to launch automatically.
In order to run HiveMQ as a Windows service, a few steps are necessary.
First we will need to unpack hivemq-windows-service.zip into HiveMQ’s home folder.
Within the newly created folder windows-service we should now find a batch script named installService.bat which will take care of setting up our desired service.
This needs to be run with the necessary privileges for the required changes. The easiest way to achieve this
is either to run the script as administrator with a simple double click, or to right click and select “Run as administrator”.
Once installService.bat was run successfully, all that is left to do is reboot the Server and verify HiveMQ’s functionality.