zoukankan      html  css  js  c++  java
  • RabbitMQ安装后,BADARG问题

    最近RabbitMQ安装后始终不能运行,发现异常关键信息如下

    =CRASH REPORT==== 10-Nov-2017::13:41:09 ===
      crasher:
        initial call: application_master:init/4
        pid: <0.120.0>
        registered_name: []
        exception exit: {bad_return,
                            {{rabbit,start,[normal,[]]},
                             {'EXIT',
                                 {badarg,
                                     [{io,format,
                                          [<0.120.0>,
                                           "~n              ~s ~s. ~s~n  ##  ##      ~s~n  ##  ##~n  ##########  Logs: ~s~n  ######  ##        ~s~n  ##########~n              Starting broker...~n",
                                           ["RabbitMQ","3.6.14",
                                            "Copyright (C) 2007-2017 Pivotal Software, Inc.",
                                            "Licensed under the MPL.  See http://www.rabbitmq.com/",
                                            [67,58,47,85,115,101,114,115,47,26446,
                                             25991,23398,47,65,112,112,68,97,116,
                                             97,47,82,111,97,109,105,110,103,47,
                                             82,97,98,98,105,116,77,81,47,108,111,
                                             103,47,82,65,66,66,73,84,126,51,46,
                                             76,79,71],
                                            [67,58,47,85,115,101,114,115,47,26446,
                                             25991,23398,47,65,112,112,68,97,116,
                                             97,47,82,111,97,109,105,110,103,47,
                                             82,97,98,98,105,116,77,81,47,108,111,
                                             103,47,82,65,66,66,73,84,126,52,46,
                                             76,79,71]]],
                                          []},
                                      {rabbit,start,2,
                                          [{file,"src/rabbit.erl"},{line,742}]},
                                      {application_master,start_it_old,4,
                                          [{file,"application_master.erl"},
                                           {line,273}]}]}}}}
          in function  application_master:init/4 (application_master.erl, line 134)
        ancestors: [<0.119.0>]
        message_queue_len: 1
        messages: [{'EXIT',<0.121.0>,normal}]
        links: [<0.119.0>,<0.33.0>]
        dictionary: []
        trap_exit: true
        status: running
        heap_size: 1598
        stack_size: 27
        reductions: 157
      neighbours:
    

      

    最后解决过程如下:

    1.卸载已安装的RABBITMQ

    2.%appdata% abbitmq下面的文件以及文件夹清空

    3. 确保安装路径没有中文字符,并且不要有空字符

    4.为确保路径是安全可达的先做如下环境配置

       a.ERLANG_HOME=D:Program Fileserl9.1

       b.RABBITMQ_BASE=D:RabbitMQRabbitBase

       c.RABBITMQ_HOME=D:RabbitMQRabbitMQ36 abbitmq_server-3.6.14

    5.重新安装RabbitMQ安装文件

    6.打开cmd 输入rabbitmqctl status

     当cmd出现Status of node 'rabbit@机器名'[{pid,19692}, {running_applications,{[{rabbit,"RabbitMQ","3.16.14"... 等打印出来的消息时则安装成功

        当安装成功后在RABBITMQ_BASE 目录下通过cmd执行命令 tree /a /f>tree.txt 将看到如下目录树结构

       

    文件夹 PATH 列表
    D:.
    |   enabled_plugins
    |   rabbitmq.config
    |   tree.txt
    |   
    +---db
    |   +---rabbit@LIWENXUE-PC-mnesia
    |   |   |   cluster_nodes.config
    |   |   |   DECISION_TAB.LOG
    |   |   |   LATEST.LOG
    |   |   |   nodes_running_at_shutdown
    |   |   |   rabbit_durable_exchange.DCD
    |   |   |   rabbit_durable_exchange.DCL
    |   |   |   rabbit_durable_queue.DCD
    |   |   |   rabbit_durable_route.DCD
    |   |   |   rabbit_runtime_parameters.DCD
    |   |   |   rabbit_serial
    |   |   |   rabbit_user.DCD
    |   |   |   rabbit_user.DCL
    |   |   |   rabbit_user_permission.DCD
    |   |   |   rabbit_user_permission.DCL
    |   |   |   rabbit_vhost.DCD
    |   |   |   rabbit_vhost.DCL
    |   |   |   recovery.dets
    |   |   |   schema.DAT
    |   |   |   schema_version
    |   |   |   
    |   |   +---msg_store_persistent
    |   |   |       0.rdq
    |   |   |       
    |   |   ---msg_store_transient
    |   |           0.rdq
    |   |           
    |   ---rabbit@LIWENXUE-PC-plugins-expand
    ---log
            rabbit@LIWENXUE-PC-sasl.log
            rabbit@LIWENXUE-PC.log
            
    

      如果看不到上述结构,则说明RabbitMQ安装失败

    7.在cmd输入 rabbitmq-plugins.bat enable rabbitmq_management口令,则添加基于Web管理模式的插件支持;此时在浏览器输入http://localhost:15672

       当看到RabbitMQ登录界面,则表示RabbitMQ可以通过网页进行管理了.

    .

  • 相关阅读:
    解题报告 The Rabbits
    解题报告 Function
    解题报告 大富翁
    解题报告 QUE
    解题报告 The cubes(即 银河英雄传说 NOI 2002)
    解题报告 xth 的苹果树
    解题报告 solve
    解题报告 Paid Roads
    解题报告 最小波动
    解题报告 Pizza
  • 原文地址:https://www.cnblogs.com/oumi/p/7813348.html
Copyright © 2011-2022 走看看