Apache-activemq version upgrade

Introduction to ActiveMQ

ActiveMQ is an open source software under the Apache Software Foundation. It follows the JMS1.1 specification and is a message-driven middleware that provides high availability, excellent performance, scalability, stability and security for enterprise messaging. ActiveMQ uses the Apache license agreement, so anyone can use and modify it without reporting any changes. The goal of ActiveMQ is to provide a standard, message-driven application integration on as many platforms and languages ​​as possible. ActiveMQ implements the JMS specification and provides a number of additional features on top of it.

ActiveMQ version upgrade

1. Download the adapted version on the activemq official website (https://activemq.apache.org/). The version I downloaded this time is: apache-activemq-5.16.0-bin.tar.gz

2. activemq depends on jdk8, check in advance whether the current environment is jdk8 environment:
java -version

insert image description here
If it is not jdk8, check whether there is a jdk8 package on the device, if not, upload a jdk8 package;

3. Upload and download the activemq upgrade package (apache-activemq-5.16.0-bin.tar.gz) to the target server, put it in the same level directory as the original activemq, and decompress it, such as: tar -xzvf apache-activemq-
5.16 .0-bin.tar.gz
insert image description here

4. Enter the activemq decompressed directory:

cd apache-activemq-5.16.0

5. Compress and back up the conf directory (or directly rename conf):

tar -czvf conf_bak20230201.tar.gz conf
insert image description here

6. Then delete the conf directory:

rm -rf conf

7. Copy the conf directory under the original activemq directory to the new mq directory:

cp -r …/apache-activemq-5.15.11/conf/ .

8. Enter the original activemq bin directory, stop the original activemq process (or ps directly kill the process):

cd apache-activemq-5.15.11/bin

activemq stop

9. Start a new activemq:

cd …/…/apache-activemq-5.15.13/bin

activemq start

10. Check whether the activemq process exists and whether it is the latest activemq

ps -ef|grep activemq

Supongo que te gusta

Origin blog.csdn.net/weixin_48773672/article/details/128835580
Recomendado
Clasificación