我在RabbitMQ 3.8上运行了一段时间。已经升级到3.12了。
我在启动RabbitMQ时遇到了问题。
undefined:js/tmpl/login没有模板。ejs undefined
在通过Brew安装的Mac osX 13.4.1上运行。
brew install rabbitmq
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Fetching rabbitmq
==> Downloading https://ghcr.io/v2/homebrew/core/rabbitmq/manifests/3.12.1
Already downloaded: /Users/hjalteniehorster/Library/Caches/Homebrew/downloads/927544177389d9aa3811922f734e8469dddfbb55c3d30514b3e4053200e0f1e3--rabbitmq-3.12.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/rabbitmq/blobs/sha256:1bd4ecd0dda3b5a0740282d5dfb89979c0c6ddf680fa9d
Already downloaded: /Users/hjalteniehorster/Library/Caches/Homebrew/downloads/8175a968d5b14cf5bcff8df5c3a118a5fa0a32c30f632218c3b5428885488681--rabbitmq--3.12.1.all.bottle.tar.gz
==> Pouring rabbitmq--3.12.1.all.bottle.tar.gz
==> Caveats
Management Plugin enabled by default at http://localhost:15672
To restart rabbitmq after an upgrade:
brew services restart rabbitmq
Or, if you don't want/need a background service you can just run:
CONF_ENV_FILE="/opt/homebrew/etc/rabbitmq/rabbitmq-env.conf" /opt/homebrew/opt/rabbitmq/sbin/rabbitmq-server
==> Summary
🍺 /opt/homebrew/Cellar/rabbitmq/3.12.1: 1,438 files, 34.2MB
==> Running `brew cleanup rabbitmq`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
其他问题的答案是您必须重新启动Linux服务器。不确定是否适用于Mac OS
更新:在一些错误日志中发现了这个。应用程序兔退出,原因:{failed_to_initialize_feature_flags_registry,{rabbit,start,[normal,[]]}}
1条答案
按热度按时间of1yzvn41#
根据article,一些功能标志在RabbitMQ 3.11.0中成为强制性的。在更新RabbitMQ之前需要启用它们。
如果它们没有启用,一个选择是降级RabbitMQ,启用标志,然后再次升级RabbitMQ。但据我所知,只有一个版本的RabbitMQ在Homebrew中可用。
另一种方法是重新安装RabbitMQ(适合我的情况,因为我在本地机器上使用它进行测试)。Brew卸载不会删除RabbitMQ保存其状态的文件夹。所以必须手动完成。在我的情况下:
/opt/homebrew/var/lib/rabbitmq/
。我找到了答案here。