windows安装rabbitmq

  • 官网下载windows安装版本:http://www.rabbitmq.com/install-windows.html ,安装文件rabbitmq-server-3.6.5.exe
  • 前提:安装erlang;官网下载:http://www.erlang.org/downloads,安装文件:OTP 19.1 Windows 64-bit Binary File(101629312)
  • erlang安装步骤如下:

    1.双击运行安装即可(在安装目录选择时注意可输入自己容易记并好区别的,eg:D:\work\emm_windows\erlang)
    2.配置环境变量(如果不在系统自带命令提示符下运行,这步可跳过):
    在系统变量的PATH后面添加上erl.exe的所在目录即可(eg:D:\work\emm_windows\erlang\bin\werl.exe)3.在命令提示符下输入”erl”可得如下结果: C:\Users\adapp>erl Eshell V5.10.3 (abort with ^G) 1> 表示安装成功,或者直接点击安装成功后的”Erlang”图标后提示: Erlang R16B02 (erts-5.10.3) [64-bit] [smp:4:4] [async-threads:10] Eshell V5.10.3 (abort with ^G) 1> 亦表示安装成功.
  • 运行rabbitmq安装包。
  • 安装成功后,激活插件

    D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins.bat enable rabbitmq_management
    The following plugins have been enabled:
      mochiweb
      webmachine
      rabbitmq_web_dispatch
      amqp_client
      rabbitmq_management_agent
      rabbitmq_management
    
    Applying plugin configuration to [email protected]-HONGCHQ... started 6 plugins.
    
    D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins.bat enable rabbitmq_mqtt
    The following plugins have been enabled:
      rabbitmq_mqtt
    
    Applying plugin configuration to [email protected]-HONGCHQ... started 1 plugin.
    
    D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins.bat enable rabbitmq_tracing
    The following plugins have been enabled:
      rabbitmq_tracing
    
    Applying plugin configuration to [email protected]-HONGCHQ... started 1 plugin.
  • 创建用户,密码,绑定权限

    D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl.bat add_user emm 123456
    Creating user "emm" ...
    
    D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl.bat set_user_tags emm administrator
    Setting tags for user "emm" to [administrator] ...
    
    D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl.bat set_permissions -p / emm ".*" ".*" ".*"
    Setting permissions for user "emm" in vhost "/" ...
    
    D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl.bat list_users
    Listing users ...
    guest   [administrator]
    emm     [administrator]
  • 使用浏览器打开http://localhost:15672 访问Rabbit Mq的管理控制台,使用刚才创建的账号登陆系统
  • 启停操作可在start menu菜单中进行。
  • 附官网说明:

    Install the Server
    
    Firstly, download and run the Erlang Windows Binary File. It takes around 5 minutes.
    
    Then just run the installer, rabbitmq-server-3.6.5.exe. It takes around 2 minutes, and will set RabbitMQ up and running as a service, with a default configuration.
    
    Run RabbitMQ Service
    
    Customise RabbitMQ Environment Variables
    The service will run fine using its default settings. You may want to customise the RabbitMQ environment or edit configuration.
    Run RabbitMQ
    The RabbitMQ service starts automatically. You can stop/reinstall/start the RabbitMQ service from the Start Menu.
    Manage the Service
    You can find links to RabbitMQ directories in the Start Menu.
    There is also a link to a command prompt window that will start in the sbin dir, in the Start Menu. This is the most convenient way to run the various command line tools.
    Port Access
    Firewalls and other security tools may prevent RabbitMQ from binding to a port. When that happens, RabbitMQ will fail to start. Make sure the following ports can be opened:
    
    4369 (epmd), 25672 (Erlang distribution)
    5672, 5671 (AMQP 0-9-1 without and with TLS)
    15672 (if management plugin is enabled)
    61613, 61614 (if STOMP is enabled)
    1883, 8883 (if MQTT is enabled)
    It is possible to configure RabbitMQ to use different ports.
    Default user access
    The broker creates a user guest with password guest. Unconfigured clients will in general use these credentials. By default, these credentials can only be used when connecting to the broker as localhost so you will need to take action before connecting from any other machine.
    
    See the documentation on access control for information on how to create more users, delete the guest user, or allow remote access to the guest user.
    
    Managing the Broker
    To stop the broker or check its status, use rabbitmqctl.bat in sbin (as an administrator).
    
    Stopping the Broker
    Use rabbitmqctl stop.
    Checking the Broker Status
    Use rabbitmqctl status. All rabbitmqctl commands will report the node absence if no broker is running (i.e. nodedown).
    More info on rabbitmqctl
    
    Logging
    
    Output from the server is sent to a RABBITMQ_NODENAME.log file in the RABBITMQ_LOG_BASE directory. Additional log data is written to RABBITMQ_NODENAME-sasl.log.
    
    The broker always appends to the log files, so a complete log history is retained.
    
    You can rotate logs using rabbitmqctl rotate_logs.
    
    Troubleshooting When Running as a Service
    
    In the event that the Erlang VM crashes whilst RabbitMQ is running as a service, rather than writing the crash dump to the current directory (which doesn‘t make sense for a service) it is written to an erl_crash.dump file in the base directory of the RabbitMQ server (set by the RABBITMQ_BASE environment variable, defaulting to %APPDATA%\%RABBITMQ_SERVICENAME% - typically %APPDATA%\RabbitMQ otherwise).
    
    Windows-specific Issues
    We aim to make RabbitMQ a first-class citizen on Windows. However, sometimes there are circumstances beyond our control. Please consult the Windows-specific Issues page.
    
    Getting Help
    If you have questions or need help, feel free to ask on RabbitMQ mailing list.
时间: 2024-10-06 05:02:43

windows安装rabbitmq的相关文章

windows安装rabbitMQ服务

简介: RabbitMQ是流行的开源消息队列系统,用erlang语言开发.RabbitMQ是AMQP(高级消息队列协议)的标准实现. windows安装rabbitMQ服务步骤: 首先需要安装 Erlang环境 官网: http://www.erlang.org/ Windows版下载地址:http://www.erlang.org/download/ 第一步运行: 第二步: 第三步: 第四步: 第五步: 这样 就安装完了 Erlang 然后需要配置ERLANG_HOME的环境变量 设置环境变量

Windows 安装Rabbitmq

Rabbitmq是基于erlang开发的消息队列,客户端支持主流的开发语言(java.C#.Python等). 环境:windows server 2012(x64) 1.下载安装 http://www.erlang.org/downloads 下载安装erlang运行环境(OTP) http://www.rabbitmq.com/download.html 下载安装Rabbitmq server 安装完成,可在开始菜单,应用程序中,找到服务启动.服务关闭.服务卸载.服务安装等快捷方式,以及数据

windows安装RabbitMQ因为用户名为中文文件夹导致RabbitMQ服务启动失败解决办法

安装RabbitMQ必须先安装Erlang 安装这两个东东网上教程一大把就不一 一 阐述了.只不过要注意的倒是有几点 1.安装Erlang需要用管理员身份运行安装,RabbitMQ官网这么说的. 2.安装RabbitMQ和Erlang的目录要没有空格和中文字符. 重点就是我之前将电脑用户名命名为中文了,即使我后面把用户名改为英文,用户文件夹还是中文改不过来了,然后百度要么无法解决要么就是操作过程太复杂稍微操作不当就得 重装系统了,而RabbitMQ 服务必须得没有中文字符才能启动,我又不想改文件

Windows安装RabbitMQ过程及相关问题

一.下载 1.首先需要下载erlang,下载地址:http://www.erlang.org/downloads 2.其次需要下载RabbitMQ,下载地址:https://www.rabbitmq.com/download.html 注意:erlang和RabbitMQ之间要注意版本对应(这个很重要),参考 https://www.rabbitmq.com/which-erlang.html 二.安装 安装erlang和RabbitMQ的过程比较简单,直接下一步就行,其中根据自己需要选择安装目

Linux centos7安装RabbitMQ

一.安装思路 1. 安装erlang 2. 安装socat 3. 安装rabbitmq 4. 相关配置 说明: 由于RabbitMQ是基于Erlang语言开发, 所以在安装RabbitMQ之前, 需要先安装Erlang rabbitmq需要socat依赖, 所以需要先安装socat 二.具体步骤 1. 安装erlang 下载: wget http://www.rabbitmq.com/releases/erlang/erlang-18.3-1.el7.centos.x86_64.rpm 安装:

Windows中 RabbitMQ安装与环境变量配置

RabbitMQ是一个在AMQP基础上完整的,可复用的企业消息系统.他遵循Mozilla Public License开源协议.1:安装RabbitMQ需要先安装Erlang语言开发包.下载地址 http://www.erlang.org/download.html 在win7下安装Erlang最好默认安装.      设置环境变量ERLANG_HOME= C:\Program Files\erlx.x.x       添加到PATH  %ERLANG_HOME%\bin; 2:安装Rabbit

windows上安装RabbitMQ

windows下 安装 rabbitMQ 及操作常用命令 rabbitMQ是一个在AMQP协议标准基础上完整的,可服用的企业消息系统.它遵循Mozilla Public License开源协议,采用 Erlang 实现的工业级的消息队列(MQ)服务器,Rabbit MQ 是建立在Erlang OTP平台上. 1.安装Erlang 所以在安装rabbitMQ之前,需要先安装Erlang . 小编使用的是otp_win64_18.1 ,需要其他版本或者32位系统的,可以去官网下载. 全部点击"下一步

windows server 2003 64bit SP2下安装RabbitMQ

一.背景 近期做一个小的基础组件,主要作用是异步消息通知.缓存维护.以及耗时任务处理. 当中消息通知和耗时任务处理要用到开源的RabbitMQ作为消息中心server. 可是有一点比較恶心,我这个组件是要执行在现有的系统中,即要给现有的系统升级,将我这个组件用进去,并且,除了除数据库server之外,全部server都是windows server 2003 enterprise edition sp2 64bit的.你没看错,就是这么古老的机器... 二.面临的问题 之前在windows se

RabbitMQ实例教程:Windows下安装RabbitMQ

(1)下载RabbitMQ服务器 从RabbitMQ官网下载最新的稳定版.目前最新版本为3.5.1. (2)移除RabbitMQ老版本. 如果之前安装了老版本的话,或者想要将Erlang VM从32位升级到64位,需要手动卸载RabbitMQ服务器.因为安装过程中并不会停止或移除旧的服务. (3)安装RabbitMQ服务器 从Erlang官网下载Windows安装文件,并安装.RabbitMQ需要这个东西. 运行rabbitmq-server-3.5.1.exe,安装RabbitMQ并使用默认配