Stop HiveMQ broker running

Hi

This may seem like a stupid question, but I have hivemq broker running on a linux server.

How do i stop it from running? or how do i restart the broker as I have made configuration chnages?

Any ideas?

Thanks
Alan

Hi @frobak,

Not a stupid question at all! To address your query, could you please confirm whether you followed the Linux installation instructions provided in the HiveMQ documentation: General Installation Information :: HiveMQ Documentation ?

If HiveMQ is set up as a service with systemd, you can assess its status using:

systemctl status hivemq

To halt the service, utilize:

sudo systemctl stop hivemq

Should you require further assistance, please don’t hesitate to ask.

Best regards,
Dasha from HiveMQ Team

Hi

Thanks for your response.

I did follow the documentation to install HiveMQ. I start the service by this:

./bin/run.sh

Using linux Ubuntu 22.04.3 LTS

The systemctl didnt work, i must need a different way.

Thanks
Alan

Hello @frobak ,

Thank you for the follow-up! When using systemctl, it is worth keeping in mind that this oftentimes uses a specifically configured user to execute the broker. Sometimes, this can result in the Java path not being defined for the user, or other transient errors.

We would be happy to assist further if you could provide some further context for the errors you are experiencing when launching via systemctl!

Best,
Aaron from the HiveMQ Team