ActiveMq series of tutorials (1) - introduction and environment construction

1. What is JMS?

JMS is the Java Message Service (Java Message Service) application program interface, which is a message-oriented middleware (Message Oriented MiddleWare) API in the Java platform, which is used to send messages between two applications or in a distributed system. For asynchronous communication. Java Message Service is a platform-independent API, and most MOM providers support JMS. (From Baidu Encyclopedia)

2. What is ActiveMQ?

ActiveMQ is the most popular and powerful open source message bus produced by Apache. It is a specific implementation of JMS.

3. Environment construction

First go to the activeMq official website to download the latest installation package. This article is installed in a Linux environment. The download address is:
http://activemq.apache.org/download-archives.html

4. Start the service

When ActiveMQ starts by default, the built-in jetty server is started, providing an admin application for monitoring ActiveMQ

After downloading, unzip it first

tar -zxvf apache-activemq-5.11.1-bin.tar.gz

Then start the service directly

cd apache-activemq-5.11.1/bin   
./activemq start

ActiveMq has two default ports 8161 and 61616

8161 is the port for accessing the console
61616 is the port provided for JAVA to call API connections

In this way, ActiveMq is started. We can access it by entering http://IP(hostname):8161 in the browser. The default username and password are admin/admin
http://server01:8161

You can click "Manage ActiveMQ broker" to enter the message management page, and you can see that the "Queues" queue is empty, that is, there is no message.

At this point, the ActiveMq environment under Linux has been installed. If you want to close ActiveMq, you can use the following command

./activemq stop

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324483040&siteId=291194637