下载ActiveMQ
http://activemq.apache.org/components/classic/download/
解压:
tar apache-activemq-5.15.8-bin.tar.gz
进入目录:
cd apache-activemq-5.15.8/bin
启动activeMQ:
./activemq start
查看activeMQ的运行状态:
./activemq status
关闭activeMQ :
./activemq stop
修改配置文件:
cd apache-activemq-5.15.8/conf
vi activemq.xml
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
61616:端口地址 8161:端口号
<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
<!-- the default port number for the web console -->
<property name="host" value="0.0.0.0"/>
<property name="port" value="8161"/>
</bean>