ActiveMQ installation instructions and file

1 Download and install

1.1 official website to download

ActiveMQ Official website: http://activemq.apache.org
Here Insert Picture Description

1.2 SFX archive

tar -zxf apache-activemq-5.11.0-bin.tar.gz

1.3 Operating command activemq

  • bin/activemq start:start up
  • bin/activemq restart: Restart
  • bin/activemq stop:stop

1.4 browser Login

Use a browser to access ActiveMQthe 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.propertiesthe need to focus
after any configuration file changes, you must reboot ActiveMQto take effect

2.1 activemq.xml

Is spring. Profile configuration which is ActiveMQthe default object components used by the application.
transportConnectorsTag - configuration information which links the port of the port number 61616is ActiveMQreleased in the tcpagreement is the access port. javaCode access ActiveMQport 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&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
        </transportConnectors>

2.2 jetty.xml

springConfiguration files for configuring jettythe default object components of the server.
jettyIs similar to tomcata middleware container.
ActiveMQThe default support a web version of the service to view the site can achieve ActiveMQpage message related data view.
8161Port is ActiveMQthe default port for the web version of the site management .
Here Insert Picture Description
in the ActiveMQweb 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

Published 334 original articles · won praise 186 · views 310 000 +

Guess you like

Origin blog.csdn.net/u012060033/article/details/104425354