A primer on HiveMQ Broker: Difference between revisions
No edit summary |
|||
| Line 22: | Line 22: | ||
= Configuration = | = Configuration = | ||
See https://docs.hivemq.com/hivemq/latest/user-guide/configuration.html . | See https://docs.hivemq.com/hivemq/latest/user-guide/configuration.html . For MQTT listeners, see https://docs.hivemq.com/hivemq/latest/user-guide/listeners.html . | ||
Revision as of 12:40, 1 August 2025
Introduction
HiveMQ Broker is a commercial MQTT Broker based on Java.
Web site: https://www.hivemq.com/products/mqtt-broker/
Download: https://www.hivemq.com/download/ (the whole HiveMQ Platform)
Documentation: https://docs.hivemq.com/hivemq/latest/user-guide/index.html (the whole HiveMQ Platform)
Installation
See https://docs.hivemq.com/hivemq/latest/user-guide/getting-started.html . We have tested the following installation steps on Windows, with HiveMQ 4.42.0.
- Unpack the downloaded ZIP file.
- In the unpacked directory for HiveMQ, expand the bin subdirectory, the right-click run.bat, and select "Run as administrator".
- You may get an error similar to this: "ERROR! You do not have the Java Runtime Environment installed, please install Java JRE from https://adoptium.net/?variant=openjdk21".
- Visit https://adoptium.net/temurin/releases and download the .MSI for Windows.
- Run the downloaded installer, keeping all defaults.
- In the unpacked directory for HiveMQ, expand the bin subdirectory, the right-click run.bat, and select "Run as administrator".
- The HiveMQ should now start, showing various log messages in the console window.
This is now an insecure HiveMQ deployment. Any MQTT client can connect to the broker with a full set of permissions. The MQTT broker is accepting TCP connections on port 1883. You can access the HiveMQ Control Center on http://localhost:8080/ . The default username is admin, the default password is hivemq. Press Ctrl+C in the console window to stop HiveMQ.
The HiveMQ platform will not start by itself when the computer is restarted. Repeat the run.bat step in order to start it again.
Configuration
See https://docs.hivemq.com/hivemq/latest/user-guide/configuration.html . For MQTT listeners, see https://docs.hivemq.com/hivemq/latest/user-guide/listeners.html .