关于Rabbitmq在windows安装的一些问题

1、我以前安装的mq,在今天打开的时候报错,类似下面的错误:

E:\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl status
Status of node 'rabbit@SC-201607101239' ...
Error: unable to connect to node 'rabbit@SC-201607101239': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@SC-201607101239']

rabbit@SC-201607101239:
  * connected to epmd (port 4369) on SC-201607101239
  * epmd reports node 'rabbit' running on port 25672
  * TCP connection succeeded but Erlang distribution failed
  * suggestion: hostname mismatch?
  * suggestion: is the cookie set correctly?
  * suggestion: is the Erlang distribution using TLS?

current node details:
- node name: 'rabbitmq-cli-27@SC-201607101239'
- home dir: C:\Users\Administrator
- cookie hash: +Xg8GwzCRQiqRrJZqqF30A==

或者:

d:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins e
ble rabbitmq_management
Plugin configuration unchanged.

Applying plugin configuration to rabbit@WIN-UKSHOMS5L3V... failed.
* Could not contact node rabbit@WIN-UKSHOMS5L3V.
Changes will take effect at broker restart.
* Options: --online - fail if broker cannot be contacted.
--offline - do not try to contact broker.

  

报错的解决方法如下:

需要同步erlang.cookie:

具体操作:将 C:\WINDOWS\.erlang.cookie   拷贝到 C:\Users\%USERNAME%\.erlang.cookie ,然后重新启动

转载自:https://www.cnblogs.com/haoliansheng/p/6008980.html

2、rabbitMQ的安装步骤:

一:安装RabbitMQ需要先安装Erlang语言开发包,百度网盘地址:http://pan.baidu.com/s/1jH8S2u6。直接下载地址:http://erlang.org/download/otp_win64_18.3.exe。
安装完成后需要配置环境变量:
新建系统变量:变量名 ERLANG_HOME 变量值 D:\softInstall\erl8.3(Erlang安装目录)
添加到PATH:%ERLANG_HOME%\bin;
二:安装RabbitMQ Server,百度网盘地址:http://pan.baidu.com/s/1eRLlSrg。直接下载地址:http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-3.6.9.exe。
安装完成后需要配置环境变量:
新建系统变量:变量名 RABBITMQ_SERVER 变量值 D:\softInstall\rabbitMQ\rabbitmq_server-3.6.9(RabbitMQ Server安装目录)
添加到PATH:%RABBITMQ_SERVER%\sbin;
三:以管理员身份运行cmd.exe,进入目录D:\softInstall\rabbitMQ\rabbitmq_server-3.6.9\sbin(RabbitMQ Server安装目录),运行cmd命令:rabbitmq-plugins.bat enable rabbitmq_management
四:以管理员身份运行cmd.exe,运行命令:net stop RabbitMQ && net start RabbitMQ。启动RabbitMQ Server,在浏览器输入地址:http://localhost:15672,输入默认账号:guest  密码:guest,就能进入RabbitMQ界面了。
至此,RabbitMQ Server安装完成。

转载自:https://www.cnblogs.com/wuzhiyuan/p/6845230.html


猜你喜欢

转载自blog.csdn.net/u013045959/article/details/80077190