2.3. Upgrading a broker instance from 7.4.0 to 7.4.x


重要

AMQ Broker 7.4 has been designated as a Long Term Support (LTS) release version. Bug fixes and security advisories will be made available for AMQ Broker 7.4 in a series of micro releases (7.4.1, 7.4.2, and so on) for a period of at least 12 months. This means that you will be able to get recent bug fixes and security advisories for AMQ Broker without having to upgrade to a new minor release. For more information, see Long Term Support for AMQ Broker.

重要

Starting with AMQ Broker 7.1.0, you can access AMQ Management Console only from the local host by default. To learn about configuring remote access to the console, see Configuring local and remote access to AMQ Management Console.

The following subsections describe how to upgrade a 7.4.0 broker instance to 7.4.x for different operating systems.

2.3.1. Upgrading from 7.4.0 to 7.4.x on Linux

注意

The name of the archive that you download could differ from what is used in the following examples.

Procedure

  1. Download the desired archive from the Red Hat Customer Portal. Follow the instructions provided in Downloading the AMQ Broker archive.
  2. Change the owner of the archive to the same user that owns the AMQ Broker installation to be upgraded. The following example shows a user called amq-broker.

    sudo chown amq-broker:amq-broker amq-broker-7.4.x.redhat-1.zip
  3. Move the archive to the directory created during the original installation of AMQ Broker. The following example uses /opt/redhat.

    sudo mv amq-broker-7.4.x.redhat-1.zip /opt/redhat
  4. As the directory owner, extract the contents of the compressed archive. In the following example, the user amq-broker extracts the archive using the unzip command.

    su - amq-broker
    cd /opt/redhat
    unzip amq-broker-7.4.x.redhat-1.zip
  5. If the broker is running, stop it.

    <broker_instance_dir>/bin/artemis stop
  6. Back up the instance directory of the broker by copying it to the home directory of the current user.

    cp -r <broker_instance_dir> ~/
  7. (Optional) Note the current version of the broker. After the broker stops, you see a line similar to the one below at the end of the <broker_instance_dir>/log/artemis.log file.

    INFO  [org.apache.activemq.artemis.core.server] AMQ221001: Apache ActiveMQ Artemis Message Broker version 2.7.0.redhat-00054 [0.0.0.0, nodeID=554cce00-63d9-11e8-9808-54ee759954c4]
  8. Edit the <broker_instance_dir>/etc/artemis.profile configuration file. Set the ARTEMIS_HOME property to the new directory created when the archive was extracted.

    ARTEMIS_HOME='/opt/redhat/amq-broker-7.4.x-redhat-1'
  9. Start the upgraded broker.

    <broker_instance_dir>/bin/artemis run
  10. (Optional) Confirm that the broker is running and that the version has changed. After starting the broker, open the <broker_instance_dir>/log/artemis.log file. Find two lines similar to the ones below. Note the new version number that appears in the log when the broker is live.

    INFO  [org.apache.activemq.artemis.core.server] AMQ221007: Server is now live
    ...
    INFO  [org.apache.activemq.artemis.core.server] AMQ221001: Apache ActiveMQ Artemis Message Broker version 2.9.0.redhat-00001 [0.0.0.0, nodeID=554cce00-63d9-11e8-9808-54ee759954c4]

Additional Resources

  • For more information about creating an instance of the broker, see Creating a broker instance.
  • You can now store a broker instance’s configuration files and data in any custom directory, including locations outside of the broker instance’s directory. In the <broker_instance_dir>/etc/artemis.profile file, update the ARTEMIS_INSTANCE_ETC_URI property by specifying the location of the custom directory after creating the broker instance. Previously, these configuration files and data could only be stored in the etc/ and data/ directories within the broker instance’s directory.

2.3.2. Upgrading from 7.4.0 to 7.4.x on Windows

Procedure

  1. Download the desired archive from the Red Hat Customer Portal. Follow the instructions provided in Downloading the AMQ Broker archive.
  2. Use a file manager to move the archive to the folder you created during the last installation of AMQ Broker.
  3. Extract the contents of the archive. Right-click the .zip file and select Extract All.
  4. If the broker is running, stop it.

    <broker_instance_dir>\bin\artemis-service.exe stop
  5. Back up the broker using a file manager.

    1. Right-click the <broker_instance_dir> folder and select Copy.
    2. Right-click in the same window and select Paste.
  6. (Optional) Note the current version of the broker. After the broker stops, you see a line similar to the one below at the end of the <broker_instance_dir>\log\artemis.log file.

    INFO  [org.apache.activemq.artemis.core.server] AMQ221002: Apache ActiveMQ Artemis Message Broker version 2.7.0.redhat-00054 [4782d50d-47a2-11e7-a160-9801a793ea45] stopped, uptime 28 minutes
  7. Edit the <broker_instance_dir>\etc\artemis.profile.cmd and <broker_instance_dir>\bin\artemis-service.xml configuration files. Set the ARTEMIS_HOME property to the new directory created when the archive was extracted.

    ARTEMIS_HOME=<install_dir>
  8. Start the upgraded broker.

    <broker_instance_dir>\bin\artemis-service.exe start
  9. (Optional) Confirm that the broker is running and that the version has changed. After starting the broker, open the <broker_instance_dir>\log\artemis.log file. Find two lines similar to the ones below. Note the new version number that appears in the log when the broker is live.

    INFO  [org.apache.activemq.artemis.core.server] AMQ221007: Server is now live
    ...
    INFO  [org.apache.activemq.artemis.core.server] AMQ221001: Apache ActiveMQ Artemis Message Broker version 2.9.0.redhat-00001 [0.0.0.0, nodeID=554cce00-63d9-11e8-9808-54ee759954c4]

Additional Resources

  • For more information about creating an instance of the broker, see Creating a broker instance.
  • You can now store a broker instance’s configuration files and data in any custom directory, including locations outside of the broker instance’s directory. In the <broker_instance_dir>\etc\artemis.profile file, update the ARTEMIS_INSTANCE_ETC_URI property by specifying the location of the custom directory after creating the broker instance. Previously, these configuration files and data could only be stored in the \etc and \data directories within the broker instance’s directory.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部