當執行:rabbitmq-plugins.bat enable rabbitmq_management 命令時候出現css
錯誤以下:html
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.
而後按照網上找的方案以下: 【沒有解決個人問題】node
https://www.cnblogs.com/amylis_chen/p/6286238.htmlwindows
解決方法: 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 具體操做:將 C:\WINDOWS\.erlang.cookie 同步到RabbitMq 啓動用戶 例如win10:C:\Users\%USERNAME%\.erlang.cookie 官方安裝手冊: http://www.rabbitmq.com/install-windows-manual.html
經過分析和網上查找,個人解決方案以下:cookie
一、刪除C:\Users\Admin(你登陸的機器名) 和 C:\Windows 下的 .erlang.cookie 文件 spa
二、找到本機目錄:C:\Users\Admin\AppData\Roaming\RabbitMQ 下的enabled_plugins 文件 ,隨便重命名一下【如:enabled_plugins.bak】;.net
三、再次執行:rabbitmq-plugins.bat enable rabbitmq_management 命令,完美經過;【管理員執行】rest
四、而後執行:rabbitmq-service install 命令,竟然有出現其餘問題(有時候是亂碼哦):code
C:\Users\Administrator>rabbitmq-service install RabbitMQ service is already present - only updating service parameters C:\Program Files\erl5.10.3\erts-5.10.3\bin\erlsrv: Warning, could not set correct interactive mode. Error: 句柄無效。 C:\Program Files\erl5.10.3\erts-5.10.3\bin\erlsrv: Warning, could not set correct service description (comment)Error: 句柄無效。
五、解決上面問題,以下:orm
解決辦法是:
一、卸載erlang,而且去註冊表裏HKLM/SOFTWARE/Ericsson/Erlang/ErlSrv下的項清掉,
二、而後從新已管理員身份安裝erlang
三、erlang重裝完成後,若RabbitMQ service 未安裝,則經過執行命令:rabbitmq-service install 安裝service;
四、執行命令:rabbitmq-service start 啓動service
六、完美解決.
若是有其餘問題,請留言!
參考
http://blog.csdn.net/mengdc/article/details/77995744