Reputation: 25
I am trying to set up HiveMQ on my Amazon EC2 instance (ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20170414) using this guide: http://www.hivemq.com/docs/hivemq/latest/#hivemqdocs_installation_for_specific_operating_systems
After installing I can succesfully run HiveMQ using:
Change directory to HiveMQ directory cd /opt/hivemq
Execute startup script ./bin/run.sh
HiveMQ will start running, and listening to port 1883 and I can connect and subscribe to the broker.
When I run HiveMQ as a systemctl service:
systemctl enable hivemq
It starts as a service withoutany issues
However, when running netstat -an|grep 1883
it does not show any activity. HiveMQ do not seem to listen to any ports and I can not connect with my MQTT client. What could be the issue?
Upvotes: 0
Views: 612
Reputation: 533
without any additional information my guess would be an issue with permissions.
chown -R hivemq:hivemq /opt/hivemq
(changing the owner of the hivemq folder to the hivemq user)
will resolve this issue
Upvotes: 1