Installation and use of ACTIVEMQ

Source: Internet
Author: User

Recently there are projects that use Message Queuing, the best open source framework in the JMS specification is ACTIVEMQ, so choose it (of course, this is my boss's decision, like I just into the workplace of the little rookie to consider the problem is not comprehensive) as a message queue to transmit data, the company has a formed Message queue framework implementation, However, the framework of the company in the implementation of a good and comprehensive, considering the synchronous message transmission and asynchronous message transmission, persistent message storage and non-persistent message storage, the point-to-point transmission between messages or pubilc/subscribe (subscription), and so on, considered very complex, So the jar package depends on the conflict more serious, so chose the activemq, gossip less tear, save the egg pain, the following is the installation of ACTIVEMQ process, because I am using Linux system, so Windows is not how to research (interested can study, very simple, hehe ~)

Download the Apache ACTIVEMQ first

Official link: Activemq download link (This is the latest 5.11 version), if you want to choose another version of their own to the official website, the official website address: http://activemq.apache.org/download.html

After the download is complete, copy it to your own directory, unzip it (provided that your computer has installed the JDK, and configured the environment variables, the specific way to install the JDK self-Baidu)

: I copy the ACTIVEMQ to the/home/q directory and unzip it

Enter the ACTIVEMQ directory after decompression:

directory, where the bin directory is activemq start and stop commands, conf put ACTIVEMQ configuration files

Yes, after the installation is complete, you must add 777 permissions to the ACTIVEMQ installation directory, add 755 permissions to the bin directory

sudo chmod 777/home/q/apache-activemq-5.11.1

sudo chmod 755/home/q/apache-activemq-5.11.1/bin

For Linux permissions explanation, please see my blog: Linux file permissions

If you don't add it, you'll get an error if you start.


Start Activemq:

Switch the Linux directory to the bin directory,./activemq Start Start ACTIVEMQ

Check if ACTIVEMQ has been started
The ACTIVEMQ defaults to 61616 ports for the JMS service, using 8161 ports to provide the management console service, and executes the following command to verify that the ACTIVEMQ service has been successfully started.
Open port: Nc-lp 61616 &
See if Port 61616 is open: Netstat-an | grep 61616


Check whether it has started:
Direct access to ACTIVEMQ Administration page: http://localhost:8161/admin/

The default user name and password are admin and can be modified in the configuration file

ACTIVEMQ Management on the face:

ACTIVEMQ installation Success, ~ ~ ~


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Installation and use of ACTIVEMQ

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.