Article Directory
1 Download and install
1.1 official website to download
ActiveMQ
Official website: http://activemq.apache.org
1.2 SFX archive
tar -zxf apache-activemq-5.11.0-bin.tar.gz
1.3 Operating command activemq
bin/activemq start
:start upbin/activemq restart
: Restartbin/activemq stop
:stop
1.4 browser Login
Use a browser to access ActiveMQ
the management application at the following address: http://ip:8161/admin/
Username: admin
Password:admin
2 Profile explain
In apache-activemq-5.15.11/conf/*
, this document: activemq.xml, jetty.xml, users.properties
the need to focus
after any configuration file changes, you must reboot ActiveMQ
to take effect
2.1 activemq.xml
Is spring
. Profile configuration which is ActiveMQ
the default object components used by the application.
transportConnectors
Tag - configuration information which links the port of the port number 61616
is ActiveMQ
released in the tcp
agreement is the access port. java
Code access ActiveMQ
port used.
<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>
2.2 jetty.xml
spring
Configuration files for configuring jetty
the default object components of the server.
jetty
Is similar to tomcat
a middleware container.
ActiveMQ
The default support a web version of the service to view the site can achieve ActiveMQ
page message related data view.
8161
Port is ActiveMQ
the default port for the web version of the site management .
in the ActiveMQ
web version management site, you need to log in, the default user name and password are admin
.
2.3 users.properties
Information content: 用户名=密码
is used to configure client access by protocol ActiveMQ
, the user name and password to use