ACTIVEMQ to start multiple broker

Source: Internet
Author: User

The steps are as follows:

1. Copy the Conf file under the ACTIVEMQ directory, called Conf2, command: Cp-r conf conf2

2. Modify the Activemq.xml file in the Conf2 directory

A. Modify the Brokername, not the same as the brokername in the Activemq.xml under the Conf directory.

    

B. Modifying the data storage file name

C. All ports involved in the transportconnectors are not the same as before. (Range: 0-65535)

3. Modify the Conf2/jetty.xml file, mainly modify the port, as follows:

4. Go to the Bin directory in the ACTIVEMQ installation directory, and copy an ACTIVEMQ, for example, called ACTIVEMQ2:

A. Modify the program ID in ACTIVEMQ2, not the same as before

    

B. Modifying the path to a configuration file

    

C. Modify the port, which has a TCP 61616 port, modified to be different from the previous

  

5. Grant Chmod 751 activemq2 to the Activemq2 file and execute./ACTIVEMQ2 start

Access: Http://ip:8161/admin, the following interface shows that the successful launch of multiple brokers

 

ACTIVEMQ to start multiple broker

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.