Hi,
From last couple of days i am struggling with installation of hivemq in ubuntu using amazon AWS EC2 instance from a windows 10 pc.
After some struggle i was able to install and run it from command line successfully. I still can but. but when i make it to run automatically on startup in ubuntu, it stops responding to its clients. If i check the service status using command “systemctl status hivemq.service” it says service is running. but i cant access.
If i stop the service using command “systemctl stop hivemq.service” and run it again using command “/opt/hivemq/bin/run.sh” it starts perfectly and start to work.
Actually when I ssh ubuntu in aws the default user name to login is “ubuntu” (which I cannot change) and all the time I had to run this command “sudo su” to become root user. so when I make it to auto start it must be trying to start under “ubuntu” user. I have no idea how to make root as default user or how can I fix this. if I check the permissions of ubuntu user using command “sudo whoami” it says root. But still I cant get it working. Any ideas how to resolve this problem.
Please help me if you can.