RabbitMQ 从3.1x.x升级到4.0.x报错“disabled_required_feature_flag,stream_filtering”


RabbitMQ 从3.1x.x升级到4.0.x时,如果尚未启用所需的功能标志,则节点将拒绝启动。以下是此情况下记录的错误消息示例:

2022-07-13 11:29:28.366877+02:00 [error] <0.232.0> Feature flags: `implicit_default_bindings`: required feature flag not enabled! It must be enabled before upgrading RabbitMQ.
2022-07-13 11:29:28.366905+02:00 [error] <0.232.0> Failed to initialize feature flags registry: {disabled_required_feature_flag,
2022-07-13 11:29:28.366905+02:00 [error] <0.232.0>                                               implicit_default_bindings}
2022-07-13 11:29:28.372830+02:00 [error] <0.232.0>
2022-07-13 11:29:28.372830+02:00 [error] <0.232.0> BOOT FAILED
2022-07-13 11:29:28.372830+02:00 [error] <0.232.0> ===========
2022-07-13 11:29:28.372830+02:00 [error] <0.232.0> Error during startup: {error,failed_to_initialize_feature_flags_registry}
2022-07-13 11:29:28.372830+02:00 [error] <0.232.0>

具体细节可以查看官方说明

解决方案

  • 首先升级到最新的 3.13.7
  • 启用全部功能标志
  • 升级到 RabbitMQ 4.0.x

将RabbitMQ降级到最新的工作版本

使用包管理工具(以 APT 为例)

更新软件包列表:

在终端中输入以下命令,以更新可用软件包的列表,获取最新的软件包信息,为后续安装指定版本做准备。

apt-get update

查询可安装的 RabbitMQ 版本

使用 apt-cache madison rabbitmq-server 命令列出 rabbitmq-server 的所有可用版本,以便从中选择要安装的指定版本

apt-cache madison rabbitmq-server

该命令会输出类似以下的内容,其中包含了不同版本的 rabbitmq-server 及其对应的源和版本号:

root@RabbitMQ:~# apt-cache madison rabbitmq-server
rabbitmq-server |    4.0.5-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.5-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.4-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.4-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.3-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.3-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.2-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.2-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.1-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.1-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.0-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |    4.0.0-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.7-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.7-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.6-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.6-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.5-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.5-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.4-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.4-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.3-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.3-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.2-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.2-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.1-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.1-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.0-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.13.0-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.14-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.14-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.13-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.13-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.12-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.12-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.11-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.11-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.10-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.12.10-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.9-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.9-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.8-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.8-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.7-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.7-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.6-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.6-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.5-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.5-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.4-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.4-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.3-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.3-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.2-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.2-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.1-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.1-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.0-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.12.0-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.28-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.28-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.27-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.27-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.26-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.26-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.25-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.25-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.24-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.24-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.23-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.23-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.22-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.22-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.21-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.21-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.20-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.20-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.19-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.19-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.18-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.18-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.17-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.17-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.16-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.16-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.15-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.15-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.14-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.14-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.13-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.13-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.12-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.12-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.11-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.11-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.10-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.11.10-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.9-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.9-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.8-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.8-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.7-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.7-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.6-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.6-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.5-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.5-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.4-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.4-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.3-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.3-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.2-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.2-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.1-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.1-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.0-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.11.0-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.25-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.25-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.24-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.24-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.23-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.23-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.22-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.22-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.21-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.21-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.20-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.20-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.19-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.19-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.18-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.18-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.17-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.17-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.16-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.16-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.14-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.14-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.13-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.13-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.12-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.12-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.11-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.11-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.10-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |  3.10.10-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.9-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.9-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server | 3.10.8-1.1+deb12u1 | http://mirrors.tuna.tsinghua.edu.cn/debian bookworm/main amd64 Packages
rabbitmq-server | 3.10.8-1.1+deb12u1 | http://security.debian.org/debian-security bookworm-security/main amd64 Packages
rabbitmq-server |   3.10.8-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.8-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.7-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.7-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.6-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.6-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.5-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.5-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.4-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.4-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.2-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.2-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.1-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.1-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.0-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.10.0-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.9.29-1 | https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server |   3.9.29-1 | https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu jammy/main amd64 Packages
rabbitmq-server | 3.10.8-1.1+deb12u1 | http://mirrors.tuna.tsinghua.edu.cn/debian bookworm/main Sources
rabbitmq-server | 3.10.8-1.1+deb12u1 | http://security.debian.org/debian-security bookworm-security/main Sources

安装指定版本的 RabbitMQ:

根据查询到的版本列表,选择你需要安装的版本,并使用以下命令进行安装,将 替换为实际的版本号,如 3.13.7-1

sudo apt-get install rabbitmq-server=<version>

验证安装结果:

安装完成后,可以使用以下命令检查 rabbitmq-server 的状态,确保其已成功安装并正在运行。

systemctl status rabbitmq-server

如果服务正在运行,你将看到类似 active (running) 的状态信息;如果未运行,可以尝试使用 sudo systemctl start rabbitmq-server 命令启动它 。

启用所有功能标志

rabbitmqctl enable_feature_flag all

显示以下结果证明正在启用所有功能标志

Enabling all feature flags ...

启用完成后可以在管理后台Admin模块的Feature Flags中查看到所有已启用的功能标志

升级到4.0.x最新版本

apt upgrade

声明:初心|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - RabbitMQ 从3.1x.x升级到4.0.x报错“disabled_required_feature_flag,stream_filtering”


愿你勿忘初心,并从一而终