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.\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 rabbit@PC-HONGCHQ... started plugins. D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.\sbin>rabbitmq-plugins.bat enable rabbitmq_mqtt
The following plugins have been enabled:
rabbitmq_mqtt Applying plugin configuration to rabbit@PC-HONGCHQ... started plugin. D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.\sbin>rabbitmq-plugins.bat enable rabbitmq_tracing
The following plugins have been enabled:
rabbitmq_tracing Applying plugin configuration to rabbit@PC-HONGCHQ... started 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.
windows安装rabbitmq的更多相关文章
- windows安装rabbitMQ服务
简介: RabbitMQ是流行的开源消息队列系统,用erlang语言开发.RabbitMQ是AMQP(高级消息队列协议)的标准实现. windows安装rabbitMQ服务步骤: 首先需要安装 Erl ...
- windows 安装 RabbitMQ 并添加用户 – 畅玩Coding
原文:windows 安装 RabbitMQ 并添加用户 – 畅玩Coding 1.RabbitMQ 使用 Eralng,所以需要先安装 Eralng 下载: http://www.erlang.or ...
- CentOS8/Windows 安装RabbitMQ
Centos8安装rabbitmq 1.安装erlang(rabbitmq是用erlang语言开发的,erlang版本需要22.x以上) yum install erlang 2.下载rabbitmq ...
- Windows安装RabbitMQ集群的几个注意点
记录一下RabbitMQ在windows平台下安装的几个注意点- -,好记性不如烂笔头 安装过程与Linux安装一致,教程参照官网集群配置:此处只列举出几个注意点: 1. erlang的版本需要一致, ...
- Windows 安装Rabbitmq
Rabbitmq是基于erlang开发的消息队列,客户端支持主流的开发语言(java.C#.Python等). 环境:windows server 2012(x64) 1.下载安装 http://ww ...
- Windows安装RabbitMQ并设置数据存储目录
一.安装Elang 下载otp_win64_xx.x.exe,当前使用otp_win64_21.3.exe版本,按步骤完成安装. 下载地址:http://www.erlang.org/download ...
- windows安装rabbitmq踩坑实录
最近学习springcloud消息总线需要用到rabbitmq,然后安装的时候踩了一些坑,记录如下: 首先安装rabbitmq之前需要先安装erlang,因为rabbitmq服务端使用erlang写的 ...
- Windows 安装RabbitMQ后,启动服务就自动停止
在做SpringCloud消息总线的时候,需要用到RabbitMQ,于是在windows上下载安装了一个,erlang的安装包不是官网下载的,而是朋友分享给我的,没注意它的版本(9.3). 安装完成后 ...
- Windows 安装 RabbitMQ
RabbitMQ概述 RabbitMQ是流行的开源消息队列系统,是AMQP(Advanced Message Queuing Protocol高级消息队列协议)的标准实现,用erlang语言开发.Ra ...
随机推荐
- transactionManager 以及datasource type解析
transactionManager 在 MyBatis 中有两种事务管理器类型(也就是 type=”[JDBC|MANAGED]”): JDBC – 这个配置直接简单使用了 JDBC 的提交和回滚设 ...
- Vuforia Android 6 Camera Error
环境 引擎: Unity 5.3.6f1 SDK: Vuforia 6.0.112 测试系统:Android 4.2/4.3 6.0 Android 6出错 在Android 6下Vuforia打印的 ...
- codevs 1472 体检
题目描述 Description 郑厂长不是正厂长 也不是副厂长 他根本就不是厂长 只是公司的一个码农 郑厂长所在的公司每一年都要组织员工体检,比如量身高体重.测血压之类的,今年也不例外. 这次总共有 ...
- [LeetCode] Fraction to Recurring Decimal 分数转循环小数
Given two integers representing the numerator and denominator of a fraction, return the fraction in ...
- Codeforces Round #385(div 2)
A =w= B QwQ C 题意:n个点m条边的无向图,其中有k个特殊点,你在这张图上尽可能多的连边,要求k个特殊点两两不连通,问最多能连多少边 分析:并查集 对原图做一次并查集,找出特殊点所在集合中 ...
- 【WPF】 通过FarPoint显示Excel
1.FarPoint 只支持winform,在Wpf中要引用:WindowsFormsIntegration.dll2.*.xaml文件引用 xmlns:wfi ="clr-names ...
- 第五次团队作业——第一次项目冲刺——Alpha版本
Deadline:2016-11-19 8:00am 本次团队作业将持续三周时间,完成项目Alpha版本,在2016.11.19 的实践课上进行演示操作. 阅读或再次阅读<构建之法> ...
- 日货EmEditor的使用小技巧
1.查看->大纲向导,可层级显示HTML 2.工具->插件->资源管理器,可在左侧显示资源管理器 3.工具->插件->单词自动完成,可实现单词智能提示功能
- Spring在非web应用中关闭IoC容器 (registerShutdownHook)
在基于web的ApplicationContext实现中,已有相应的实现来处理关闭web应用时恰当地关闭Spring IoC容器.但,如果你正在一个非web应用的环境下使用Spring的IoC容器,如 ...
- 测试对于list的sort与sorted的效率
sorted from time import clock from random import randint start = clock() a = [randint(0,1000000) for ...