Running HiveMQ in the Cloud
Infrastructure as a Service (IaaS) providers like Amazon Webservices (AWS) and Microsoft Windows Azure are good choices for building reliable and scalable infrastructures for your services or platforms. HiveMQ runs perfectly on any cloud infrastructure provider. This chapters provides step-by-step example configurations for popular IaaS providers. The prerequisites for every IaaS provider listed here are that you have a valid account for the desired service.
HiveMQ now offers a fully-managed, cloud-native IoT messaging platform that can connect IoT devices to any IoT cloud platform. For more information about simplified device-to-cloud bi-directional communication see, Welcome to HiveMQ Cloud. |
Running HiveMQ on Amazon Webservices (AWS)
This procedure shows you how to install HiveMQ on an Amazon EC2 instance (if you use a Windows operating system, steps can vary):
-
Navigate to Instances on your EC2 Dashboard in the AWS Management Console.
-
Click Launch Instance and start the wizard to launch a new instance. Select the Ubuntu 12.04 LTS AMI. [1]
-
Follow the wizard and configure your EC2 instance.
-
Create a new Security Group called MQTT with a custom TCP Rule with port 1883.
-
Enable SSH Access: Create a Security Rule with a custom TCP Rule with port 22.
-
Finish the wizard to start the EC2 instance creation.
-
Now, connect to your server instance via SSH.
-
Execute the following command to install all required dependencies:
sudo apt-get install unzip openjdk-7-jdk
-
Get your evaluation version from our website.
-
Copy the provided download link and download HiveMQ
wget --content-disposition <your download link>
-
Unzip HiveMQ:
unzip hivemq-3.x.x.zip
-
Start HiveMQ:
cd hivemq-3.x.x ./bin/run.sh
Running HiveMQ on Microsoft Azure
This procedure shows you how to install HiveMQ on an Azure Linux VM. (if you use a Windows operating system, steps can vary):
-
Create a new Virtual Machine via the Azure Web interface and select Ubuntu 12.04 LTS as image. [1]
-
After the Virtual Machine is created, open the standard MQTT port: 1883. Go to the Endpoint settings of your VM in the Azure Web interface and create a new endpoint. Use TCP as protocol and set the public and private port to 1883.
-
Now, connect to your server instance via SSH.
-
Execute the following command to install all required dependencies:
sudo apt-get install unzip openjdk-7-jdk
-
Get your evaluation version from our website.
-
Copy the provided download link and download HiveMQ
wget --content-disposition <your download link>
-
Unzip HiveMQ:
unzip hivemq-3.x.x.zip
-
Start HiveMQ:
cd hivemq-3.x.x ./bin/run.sh