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