win7下启动activeMQ服务
win7下启动activeMQ服务
我使用的是ActiveMQ 5.15.0(最低要求是jdk1.8)+jdk1.8
1.What platforms does ActiveMQ Support?(对应jdk版本支持)
ActiveMQ 5.0-5.7 supports any Java platform of Java 5.0 or later. To run on 1.4 see these instructions.
ActiveMQ 5.8-5.10 require Java 6 or higher and the releases from 5.11 onwards require Java 7 or later.
ActiveMQ is based on J2EE 1.4 or later and so implements JMS 1.1 and a JCA 1.5 Resource Adaptor.
We regularly test ActiveMQ on Windows, OS X, Linux though we're aware of folks who use AIX and Solaris too.

a:5.0-5.7 jdk1.5-jdk1.8
b:5.8-5.10 jdk1.6-jdk1.8
c:5.11 jdk1.7-jdk1.8
2.下载:http://activemq.apache.org/activemq-5150-release.html
3.修改D:\software\apache-activemq-5.15.0\conf下的activemq.xml文件
将解压后的activemq.xml中<transportConnectors>的uri修改为127.0.0.1
<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"/>
<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>
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire" uri="tcp://127.0.0.1:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://127.0.0.1:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://127.0.0.1:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://127.0.0.1:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://127.0.0.1:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
4.打开bin目录下的activemq.bat(以管理员身份启动)
如果计算机名称含有下划线,启动activemq.bat会报错
a.InstallService.bat这个是安装服务到Windows
b.services.msc进入启动activeMQ服务
我使用的是ActiveMQ 5.15.0(最低要求是jdk1.8)+jdk1.8
1.What platforms does ActiveMQ Support?(对应jdk版本支持)
ActiveMQ 5.0-5.7 supports any Java platform of Java 5.0 or later. To run on 1.4 see these instructions.
ActiveMQ 5.8-5.10 require Java 6 or higher and the releases from 5.11 onwards require Java 7 or later.
ActiveMQ is based on J2EE 1.4 or later and so implements JMS 1.1 and a JCA 1.5 Resource Adaptor.
We regularly test ActiveMQ on Windows, OS X, Linux though we're aware of folks who use AIX and Solaris too.
a:5.0-5.7 jdk1.5-jdk1.8
b:5.8-5.10 jdk1.6-jdk1.8
c:5.11 jdk1.7-jdk1.8
2.下载:http://activemq.apache.org/activemq-5150-release.html
3.修改D:\software\apache-activemq-5.15.0\conf下的activemq.xml文件
将解压后的activemq.xml中<transportConnectors>的uri修改为127.0.0.1
<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"/>
<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>
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire" uri="tcp://127.0.0.1:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://127.0.0.1:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://127.0.0.1:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://127.0.0.1:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://127.0.0.1:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
4.打开bin目录下的activemq.bat(以管理员身份启动)
如果计算机名称含有下划线,启动activemq.bat会报错
a.InstallService.bat这个是安装服务到Windows
b.services.msc进入启动activeMQ服务
5.127.0.0.1:8161 进入管理界面,为什么端口号是8161,因为jetty.xml配置初始端口号就是8161
b.登录账号和密码都是admin
c.进入管理界面