RabbitMQ安装记录(windows10)

RabbitMQ安装记录(windows10)

 

一、安装包准备

otp_win64_R16B03.exe(这里使用该版本,不支持ssl)

otp_win64_19.0.exe(如果要开启ssl,请下载该版本)

rabbitmq-server-3.6.6.exe

二、安装

分别安装erlang,rabbitmq

三、启动

在服务中能找到RabbitMQ,直接启动服务即可。

注意,这个时候的web管理UI是不能访问的,还没有启动,看下面。

windows使用如下命令查看端口是否启动:

netstat -aon|findstr "15672"

四、启用web管理UI

使用插件方式启动,分别执行下面的命令:

C:Program FilesRabbitMQ Server abbitmq_server-3.6.6sbin>rabbitmq-plugins enable rabbitmq_management

C:Program FilesRabbitMQ Server abbitmq_server-3.6.6sbin>rabbitmq-plugins enable mochiweb

如果是禁用的话:

C:Program FilesRabbitMQ Server abbitmq_server-3.6.6sbin>rabbitmq-plugins disable mochiweb

五、web管理UI访问

URL:http://localhost:15672

登录账号:guest,密码:guest

六、端口使用情况,引用官网

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)
5672, 5671 (AMQP 0-9-1 and 1.0 without and with TLS)
25672. This port used by Erlang distribution for inter-node and CLI tools communication and is allocated from a dynamic range (limited to a single port by default, computed as AMQP port + 20000). See networking guide for details.
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.

七、相关命令

显示所有插件及状态:rabbitmq-plugins list

启动服务:rabbitmq-service start

停止服务:rabbitmq-service stop

原文地址:https://www.cnblogs.com/hushuning/p/7943943.html