zoukankan      html  css  js  c++  java
  • windows7下RabbitMQ的安装

     

    一、下载资源

    Rabbit MQ 是建立在强大的Erlang OTP平台上,因此安装Rabbit MQ的前提是安装Erlang。(在官网自行选择版本)

    1、otp_win64_20.2.exe

    下载地址 :http://www.erlang.org/downloads

     
     
     
     

    2、rabbitmq-server-3.7.0.exe

    下载地址 :http://www.rabbitmq.com/install-windows.html 

    二、安装Erlang

    1、打开otp_win64_20.2.exe

    2、配置环境变量

     

    3、查看Erlang版本

    说明Elang安装成功

    三、安装RabbitMQ

    1、打开rabbitmq-server-3.7.0.exe

    到此Rabbit安装完成(这里没有配置环境变量、有需要的可以加配Rabbit环境变量)

    2、开启插件

    rabbitmq_managemen是管理后台的插件、我们要开启这个插件才能通过浏览器访问登录页面

    进入到sbin目录下:rabbitmq-plugins enable rabbitmq_managemen

    3、开启服务:rabbitmq-server start

    四、进入管理后台

    开启浏览器访问http://localhost:15672

    默认userName:guest    password:guest

    五、创建用户并授权角色

    1、创建用户

    rabbitmqctl.bat add_user leimiaotang 123456

    2、授权角色

    (1) 超级管理员(administrator)
          可登陆管理控制台(启用management plugin的情况下),可查看所有的信息,并且可以对用户,策略(policy)进行操作。
    (2) 监控者(monitoring)
          可登陆管理控制台(启用management plugin的情况下),同时可以查看rabbitmq节点的相关信息(进程数,内存使用情况,磁盘使用情况等) 
    (3) 策略制定者(policymaker)
          可登陆管理控制台(启用management plugin的情况下), 同时可以对policy进行管理。
    (4) 普通管理者(management)
           仅可登陆管理控制台(启用management plugin的情况下),无法看到节点信息,也无法对策略进行管理。
    (5) 其他的

    无法登陆管理控制台,通常就是普通的生产者和消费者。 

        

    六、错误处理

    1、rabbit服务未启动

    rabbitmqctl status

    解决方式:进入到sbin目录下执行命令

    rabbitmq-server stop

    rabbitmq-server start

    再次运行:rabbitmqctl status

    结果如下表示启动成功,可以正常访问后台管理界面:

     C:Windowssystem32>rabbitmqctl status
    Status of node rabbit@lmt-PC ...
    [{pid,24748},
     {running_applications,
         [{rabbitmq_management,"RabbitMQ Management Console","3.7.0"},
          {rabbitmq_management_agent,"RabbitMQ Management Agent","3.7.0"},
          {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.7.0"},
          {rabbit,"RabbitMQ","3.7.0"},
          {amqp_client,"RabbitMQ AMQP Client","3.7.0"},
          {rabbit_common,
              "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
              "3.7.0"},
          {ranch_proxy_protocol,"Ranch Proxy Protocol Transport","1.4.2"},
          {cowboy,"Small, fast, modern HTTP server.","2.0.0"},
          {ranch,"Socket acceptor pool for TCP protocols.","1.4.0"},
          {ssl,"Erlang/OTP SSL application","8.2.3"},
          {public_key,"Public key infrastructure","1.5.2"},
          {asn1,"The Erlang ASN1 compiler version 5.0.4","5.0.4"},
          {recon,"Diagnostic tools for production use","2.3.2"},
          {os_mon,"CPO  CXC 138 46","2.4.4"},
          {xmerl,"XML parser","1.3.16"},
          {cowlib,"Support library for manipulating Web protocols.","2.0.0"},
          {crypto,"CRYPTO","4.2"},
          {inets,"INETS  CXC 138 49","6.4.5"},
          {mnesia,"MNESIA  CXC 138 12","4.15.2"},
          {jsx,"a streaming, evented json parsing toolkit","2.8.2"},
          {lager,"Erlang logging framework","3.5.1"},
          {goldrush,"Erlang event stream processor","0.1.9"},
          {compiler,"ERTS  CXC 138 10","7.1.4"},
          {syntax_tools,"Syntax tools","2.1.4"},
          {sasl,"SASL  CXC 138 11","3.1.1"},
          {stdlib,"ERTS  CXC 138 10","3.4.3"},
          {kernel,"ERTS  CXC 138 10","5.4.1"}]},
     {os,{win32,nt}},
     {erlang_version,
         "Erlang/OTP 20 [erts-9.2] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:64]
    "},
     {memory,
         [{connection_readers,0},
          {connection_writers,0},
          {connection_channels,0},
          {connection_other,2744},
          {queue_procs,0},
          {queue_slave_procs,0},
          {plugins,539048},
          {other_proc,33782552},
          {metrics,195464},
          {mgmt_db,142328},
          {mnesia,74424},
          {other_ets,2166864},
          {binary,248768},
          {msg_index,30320},
          {code,28299498},
          {atom,1123529},
          {other_system,10569229},
          {allocated_unused,18966544},
          {reserved_unallocated,0},
          {strategy,rss},
          {total,[{erlang,77174768},{rss,96141312},{allocated,96141312}]}]},
     {alarms,[]},
     {listeners,
         [{clustering,25672,"::"},
          {amqp,5672,"::"},
          {amqp,5672,"0.0.0.0"},
          {http,15672,"::"},
          {http,15672,"0.0.0.0"}]},
     {vm_memory_calculation_strategy,rss},
     {vm_memory_high_watermark,0.4},
     {vm_memory_limit,6829888307},
     {disk_free_limit,50000000},
     {disk_free,39022010368},
     {file_descriptors,
         [{total_limit,8092},
          {total_used,2},
          {sockets_limit,7280},
          {sockets_used,0}]},
     {processes,[{limit,1048576},{used,383}]},
     {run_queue,0},
     {uptime,20},
     {kernel,{net_ticktime,60}}]

    C:Windowssystem32>
  • 相关阅读:
    Ubantu常用命令
    移动 Ubuntu16.04 桌面左侧的启动器到屏幕底部
    Win10上安装TensorFlow(官方文档翻译)
    Win10上安装Keras 和 TensorFlow(GPU版本)
    课程四(Convolutional Neural Networks),第二 周(Deep convolutional models: case studies) —— 1.Practice questions
    课程四(Convolutional Neural Networks),第二 周(Deep convolutional models: case studies) —— 0.Learning Goals
    Difference Between Session.run and Tensor.eval
    tf.cast()的用法(转)
    Tensflow的equal函数
    Tensflow的targmax函数
  • 原文地址:https://www.cnblogs.com/guokezhiren/p/9197656.html
Copyright © 2011-2022 走看看