修改 jetty.xml <beanid="jettyPort"class="org.apache.activemq.web.WebConsolePort"init-method="start"> <!-- the default port number for the web console --> <propertyname="host"value="0.0.0.0"/> <propertyname="port"value="8161"/> </bean>
修改服务端口号
1 2 3 4 5 6 7 8 9
修改activemq.xml,端口冲突服务无法启动 <transportConnectors> <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB --> <transportConnectorname="openwire"uri="tcp://0.0.0.0:30451?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnectorname="amqp"uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnectorname="stomp"uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnectorname="mqtt"uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <!--<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>--> </transportConnectors>