1、修改TCP 61616端口
cd /apps/svr/activemq/conf cat activemq.xml |grep transportConnector <transportConnectors> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="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>
transportConnector name="openwire" uri="tcp://0.0.0.0:61616 中61616修改成需要的即可
2、修改管理页面的8161端口
vi /apps/svr/activemq/conf/jetty.xml 107 <bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start"> 108 <!-- the default port number for the web console --> 109 <property name="host" value="0.0.0.0"/> 110 <property name="port" value="8161"/> 111 </bean>