googlerabbitmq

Upgrade RabbitMQ

It is strongly recommended to create a backup before starting the update process. If you have important data, create and try to restore a backup to ensure that everything works properly.

You can upgrade the application only without modifying any other stack components. Follow these steps:

  • Stop your server.

      $ sudo /opt/bitnami/ctlscript.sh stop rabbitmq
    
  • Copy the etc/, var/ and rabbitmq_home/ folders in the rabbitmq/ folder.

      $ mkdir ~/rabbitmq_backup
      $ sudo cp -r /opt/bitnami/rabbitmq/etc ~/rabbitmq_backup/
      $ sudo cp -r /opt/bitnami/rabbitmq/var ~/rabbitmq_backup/
      $ sudo cp -r /opt/bitnami/rabbitmq/rabbitmq_home ~/rabbitmq_backup
    
  • Download the latest version of RabbitMQ and uncompress it.

      $ tar -xvf rabbitmq-server-generic-unix-3.4.2.tar.g
    
  • Copy the uncompressed folder to /opt/bitnami/rabbitmq:

      $ sudo cp -r rabbitmq_server-3.4.2/* /opt/bitnami/rabbitmq/
    
  • Recover your backup files.

      $ sudo cp -r ~/rabbitmq_backup/* /opt/bitnami/rabbitmq/
    
  • Restart your server.

      $ sudo /opt/bitnami/ctlscript.sh start rabbitmq
    
Last modification December 21, 2022