配置激活RabbitMQ's Management Plugin使用RabbitMQ 管理插件;当执行:rabbitmq-plugins.bat enable rabbitmq_management 命令时候出现:
Plugin configuration unchanged.
Applying plugin configuration to rabbit@hj... failed.
Could not contact node rabbit@hj. Changes will take effect at broker restart.
Options: --online - fail if broker cannot be contacted. --offline - do not try to contact broker.
解决方案:
Synchronise Erlang Cookies (when running a manually installed Windows Service)
Erlang Security Cookies used by the service account and the user running rabbitmqctl.bat must be synchronised for rabbitmqctl.bat to function.
To ensure Erlang cookie files contain the same string, copy the .erlang.cookie file from the Windows directory (normally C:\WINDOWS\.erlang.cookie) to replace the user .erlang.cookie. The user cookie will be in the user‘s home directory (%HOMEDRIVE%%HOMEPATH%), e.g.C:\Documents and Settings\%USERNAME%\.erlang.cookie orC:\Users\%USERNAME%\.erlang.cookie (Windows Vista and later).
上面中文意思为:
同步Erlang cookies(运行手动安装的Windows服务时)
必须同步服务帐户和运行rabbitmqctl.bat的用户使用的erlang安全cookie,以便rabbitmqctl.bat正常工作。
要确保Erlang cookie文件包含相同的字符串,请从Windows目录(通常为c:\windows\.erlang.cookie)复制.erlang.cookie文件以替换用户.erlang.cookie。用户cookie将位于用户的主目录(%homedrive%%homepath%),例如c:\documents and settings\%username%\.erlang.cookie或c:\user s\%username%\.erlang.cookie(Windows Vista及更高版本)。
同步Erlang Cookies
具体操作:将 C:\WINDOWS\.erlang.cookie 同步到RabbitMq 启动用户 例如win10:C:\Users\%USERNAME%\.erlang.cookie
最近准备了一个公众号每天都会推送一些开发中经常遇到的问题解决方法,希望多久关注一下,谢谢支持: