1 Answer
- Newest
- Most votes
- Most comments
3
Please follow on below:
- Locate the activemq.xml Configuration File:
This file is typically found in the conf directory of your ActiveMQ installation.
- Edit the MQTT Transport Connector:
-
Open the activemq.xml file in a text editor.
-
Look for the <transportConnector> tag that defines the MQTT protocol:
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:8883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
- Change the port from 8883 to 1883:
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
Save and Restart ActiveMQ:
Save the changes to the activemq.xml file.
Restart the ActiveMQ service to apply the new configuration.
Verify the Change:
Use a tool like netstat or an MQTT client to confirm that ActiveMQ is now listening on port 1883.
Relevant content
- asked a year ago
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
