April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

ActiveMQ standalone installation and use tutorial

ActiveMQ standalone installation and use tutorial

First of all, simply introduce the MQ, MQ English name MessageQueue, Chinese name is that we use the message queue, why use it, that white is a message to accept and forward the container can be used for message push.

ActiveMQ is produced by Apache, one of the most popular, powerful open source message bus. ActiveMQ is a JMS provider implementation that fully supports JMS 1.1 and J2EE 1.4 specifications. It is very fast and supports multiple languages ??of clients and protocols, and can be easily embedded into enterprise application environments with many advanced features, Here we have to install ActiveMQ standalone version.

1. In the official website to download ActiveMQ, and upload to the server

2. Unpack the installation

# tar -zxvf apache-activemq-5.11.1-bin.tar.gz
3. If the startup script activemq does not have executable permissions, then you need authorization

# chmod 755 /opt/activeMQ/apache-activemq-5.11.1/bin/activemq
4. Configure the port

ActiveMQ(???61616)
( 8161) conf/jetty.xml

5. Start ActiveMQ

# /opt/activeMQ/apache-activemq-5.11.1/bin/activemq start

6. Access ActiveMQ

Click manage ActiveMQ account password verification interface, the default account password: admin / admin

7. Security
configuration ActiveMQ If you do not join the security mechanism, anyone who knows the specific address of the message service (including IP, port, message address [queue or subject address]), can be unscrupulous to send and receive messages. So we have to configure ActiveMQ security, ActiveMQ message security configuration strategy has a variety of, we take a simple authorization configuration as an example.

7.1 In the conf/activemq.xml file, add the following at the end of the broker tag:

# vim /opt/activeMQ/apache-activemq-5.11.1/conf/activemq.xml





roberto roberto,users,admins
7.2 Make sure that authentication is enabled

authenticate true

7.3 Console Login User Name The password is stored in the conf/jetty-realm.properties file, as follows:

# vim /opt/activeMQ/apache-activemq-5.11.1/conf/jetty-realm.properties

# Defines users that can access the web (console, demo, etc.)
# username: password [,rolename …]
admin: roberto, admin
user: user, user
Modify the admin user’s password to roberto

7.4 Restart ActiveMQ
# /opt/activeMQ/apache-activemq-5.11.1/bin/activemq restart

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>