zoukankan      html  css  js  c++  java
  • Rabbitmq Plugin configuration unchanged. 问题完全解决方案

    当执行: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.

    然后按照网上找的方案如下: 【没有解决我的问题

    https://www.cnblogs.com/amylis_chen/p/6286238.html

    解决方法:
    
    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

    通过分析和网上查找,我的解决方案如下:

    1、删除C:UsersAdmin(你登录的机器名) 和 C:Windows 下的  .erlang.cookie 文件 

    2、找到本机目录:C:UsersAdminAppDataRoamingRabbitMQ 下的enabled_plugins 文件 ,随便重命名一下【如:enabled_plugins.bak】;

    3、再次执行:rabbitmq-plugins.bat enable rabbitmq_management 命令,完美通过;【管理员执行】

    4、然后执行:rabbitmq-service install 命令,居然有出现其他问题(有时候是乱码哦):

    C:UsersAdministrator>rabbitmq-service install
    RabbitMQ service is already present - only updating service parameters
    C:Program Fileserl5.10.3erts-5.10.3inerlsrv: Warning, could not set correct interactive mode.
    Error: 句柄无效。
    C:Program Fileserl5.10.3erts-5.10.3inerlsrv: Warning, could not set correct service description (comment)Error: 句柄无效。

    5、解决上面问题,如下:

    解决办法是:

    1、卸载erlang,并且去注册表里HKLM/SOFTWARE/Ericsson/Erlang/ErlSrv下的项清掉,
    2、然后重新已管理员身份安装erlang
    3、
    erlang重装完成后,若RabbitMQ service 未安装,则通过执行命令:rabbitmq-service install 安装service;
    4、执行命令:rabbitmq-service start 启动service

    6、完美解决.

    如果有其他问题,请留言!

    参考

     http://blog.csdn.net/mengdc/article/details/77995744

  • 相关阅读:
    linq in 查询
    sql数据分组取第一条
    获取mac地址
    计算机网络体系结构分层 (OSI TCP/IP)
    2048游戏代码
    go——变量、类型、常量、函数
    关于装饰器 开放封闭
    linux杂碎知识
    crawl——scrapy(配置文件,持久化,请求传递参数,提高爬虫效率,爬虫中间件,集成selenium,去重规则)
    crawl——xpath使用
  • 原文地址:https://www.cnblogs.com/tianciliangen/p/8419003.html
Copyright © 2011-2022 走看看