windows10安装rabbitmq

安装Erlang

由于rabbitMQ是Erlang语言编写的,所以要先安装Erlang语言环境,与安装java类似。

rabbitmq官网安装教程:https://www.rabbitmq.com/install-windows.html。

在这里插入图片描述
官网已经告诉我们如何安装了。进入erlang下载页面:https://www.erlang.org/downloads,下载最新的erlang
在这里插入图片描述
下载完成并且安装完成,安装时可以修改安装路径,这个路径要记得。
随后修改环境变量。
此电脑–>鼠标右键“属性”–>高级系统设置–>环境变量–>“新建”系统环境变量
在这里插入图片描述
最后windows键+R键,输入cmd,再输入erl,看到版本号就说明erlang安装成功了。

在这里插入图片描述

安装rabbitmq

安装上面rabbitMQ官网展示的,我们下载最新的rabbitmq:rabbitmq-server-3.8.2.exe,下载地址:https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.2/rabbitmq-server-3.8.2.exe

双击exe文件安装即可,安装路径可以修改。

接下来安装RabbitMQ-Plugins。
cmd下,进入安装目录D:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.2\sbin,执行命令rabbitmq-plugins enable rabbitmq_management安装RabbitMQ-Plugins。
安装完成后,输入RabbitMQ-Plugins查看rabbitmq状态。完整命令与输出如下:

D:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.2\sbin>rabbitmq-plugins enable rabbitmq_management
Enabling plugins on node rabbit@MicroWin10-1420:
rabbitmq_management
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@MicroWin10-1420...
The following plugins have been enabled:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch

started 3 plugins.

D:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.2\sbin>rabbitmqctl status
Status of node rabbit@MicroWin10-1420 ...
Runtime

OS PID: 12716
OS: Windows
Uptime (seconds): 175
RabbitMQ version: 3.8.2
Node name: rabbit@MicroWin10-1420
Erlang configuration: Erlang/OTP 22 [erts-10.6] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:64]
Erlang processes: 448 used, 1048576 limit
Scheduler run queue: 1
Cluster heartbeat timeout (net_ticktime): 60

Plugins

Enabled plugin file: C:/Users/Administrator/AppData/Roaming/RabbitMQ/enabled_plugins
Enabled plugins:

 * rabbitmq_management
 * rabbitmq_web_dispatch
 * rabbitmq_management_agent
 * amqp_client
 * cowboy
 * cowlib

Data directory

Node data directory: c:/Users/Administrator/AppData/Roaming/RabbitMQ/db/rabbit@MicroWin10-1420-mnesia

Config files

 * c:/Users/Administrator/AppData/Roaming/RabbitMQ/advanced.config

Log file(s)

 * C:/Users/Administrator/AppData/Roaming/RabbitMQ/log/rabbit@MicroWin10-1420.log
 * C:/Users/Administrator/AppData/Roaming/RabbitMQ/log/rabbit@MicroWin10-1420_upgrade.log

Alarms

(none)

Memory

Calculation strategy: rss
Memory high watermark setting: 0.4 of available memory, computed to: 3.4131 gb
code: 0.0303 gb (28.25 %)
other_proc: 0.0288 gb (26.8 %)
allocated_unused: 0.0265 gb (24.7 %)
other_system: 0.0155 gb (14.46 %)
other_ets: 0.0033 gb (3.07 %)
atom: 0.0015 gb (1.41 %)
plugins: 0.0007 gb (0.65 %)
metrics: 0.0002 gb (0.19 %)
binary: 0.0002 gb (0.19 %)
mgmt_db: 0.0002 gb (0.14 %)
mnesia: 0.0001 gb (0.07 %)
quorum_ets: 0.0 gb (0.04 %)
msg_index: 0.0 gb (0.03 %)
connection_other: 0.0 gb (0.0 %)
connection_channels: 0.0 gb (0.0 %)
connection_readers: 0.0 gb (0.0 %)
connection_writers: 0.0 gb (0.0 %)
queue_procs: 0.0 gb (0.0 %)
queue_slave_procs: 0.0 gb (0.0 %)
quorum_queue_procs: 0.0 gb (0.0 %)
reserved_unallocated: 0.0 gb (0.0 %)

File Descriptors

Total: 2, limit: 65439
Sockets: 0, limit: 58893

Free Disk Space

Low free disk space watermark: 0.05 gb
Free disk space: 179.4398 gb

Totals

Connection count: 0
Queue count: 0
Virtual host count: 1

Listeners

Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Interface: [::], port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
Interface: 0.0.0.0, port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
Interface: [::], port: 15672, protocol: http, purpose: HTTP API
Interface: 0.0.0.0, port: 15672, protocol: http, purpose: HTTP API

此时rabbitmq服务已经启动,页面上访问控制台 http://localhost:15672/
用户名和密码都是guest
在这里插入图片描述

平时启动rabbitmq服务,双击rabbitmq-server.bat即可
在这里插入图片描述

展开阅读全文
©️2020 CSDN 皮肤主题: Age of Ai 设计师: meimeiellie 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值