Getting started with HiveMQ

HiveMQ is a MQTT broker. A broker is basically the server part in the MQTT communication. Beside the common broker functionality HiveMQ provides some extended functionality like building (high availability) clusters, deep integration to your application- and IT infrastructure and enhanced security.

Pre-Installation requirements

Operation System: Windows or Linux/Unix/BSD/Mac OS X
Java: OpenJDK 1.7 or newer.

A more detailed list of requirements can be found in the HiveMQ User Guide.

Install

  • Download the latest HiveMQ archive from the website
  • Unpack
  • Run
Linux/Unix/BSD/Mac OS X

Unpack:

unzip hivemq-.zip

Run:

cd /bin
chmod 755 run.sh
./run.sh
Windows

Unpack:
Extract the Zip-archive using your file browser into a directory of your choice

Run:
Change to the folder `bin` and run the run.bat file by double clicking on it.

Verify

You should be able to connect to your IP on the default MQTT port 1883

Linux/Unix/BSD:
netstat -an|grep 1883

You should see a line like the following in the output

tcp46      0      0  *.1883                 *.*                    LISTEN

 

Windows:

Start the CMD and type:

netstat -an|find "1883"