Install rabbitmq and environment erlang in windows (the most detailed version, including correspondence and installation error solutions)

Written at the front: I don’t know when to install an mq. I need to read countless articles before installing it. None of them explain it completely. Here is a detailed tutorial.

Delete old version correspondence:

    1.在官方文档中找到RabbitMQ版本对应的Erlang版本重新下载安装包

    文档RabbitMQ Erlang Version Requirements — RabbitMQ

    2.下载完成后停止Erlang和RabbitMQ服务并进入原本Erlang和RabbitMQ的安装目录,运行Uninstall.exe

    3.卸载完成后检查Erlang和RabbitMQ的安装目录是否删干净

    4.删除RabbitMQ和Erlang的所有安装目录。

    5.运行CMD-->sc delete RabbitMQ

    6.删除目录C:\Windows\System32\config\systemprofile中的.erlang.cookie文件(如果有的话)。

    7.删除目录C:\Users\用户名  中的.erlang.cookie文件(如果有的话)。

    8.删除目录C:\Users\用户名\AppData\Roaming目录下的RabbitMQ文件夹。

    9.打开注册表编辑器,删除表,计算机\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ericsson\Erlang下的子项

    10.以管理员运行分别运行Erlang和RabbitMQ安装包即可

1. The corresponding relationship between rabbitmq and erlang is as follows (for details, please check: https://www.rabbitmq.com/which-erlang.html ):
Insert image description here

2. Here we take mq-3.10.18 and erlang-24.3.3 as examples (although the official description states that 3.10.18 corresponds to the 24.4 version of erlang, personal testing requires at least 24.3.2 to support mq-3.10.18)

3.erlang download, link: https://www.erlang.org/patches/otp-24.3.3

Insert image description here
4. Download mq, scroll to the bottom to download the exe format file (the Internet will be much faster if you have science), link: https://www.rabbitmq.com/news.html
Insert image description here
Insert image description here
5. Install erlang and mq separately, and configure after installation Environment variables:
Insert image description here

Insert image description here
6. After configuration, enter cmd: erlYou can check the erlang version. If the version number is displayed, the installation is successful.
Insert image description here
7. Enter the sbin directory of mq, enter in the cmd window: , rabbitmq-server.bat -detachedrun the service in the background, and run the front window without adding the following -detached
Insert image description here
8. Start successfully After the browser access localhost:15672, the following page will be displayed (Note: The browser access port is: 15672, the code configuration port is: 5672)
9. Some problems that may occur
(1) After the installation is successful, the startup report is that port 25672 is occupied. Solution: in
order Click stop–>start, there is a high probability that the startup will be successful.

Insert image description here

(2) After the installation is successful, the startup prompt is successful, but localhost:15672the window cannot be opened
. If this prompt appears, the startup is successful

Insert image description here
. The solution is to execute the following instructions in the sbin directory and then restart:

1、进入安装目录 cd 你的RabbitMQ安装目录\sbin

2、打开节点:rabbitmqctl start_app

3、配置管理模块:rabbitmq-plugins enable rabbitmq_management

4、关闭节点:rabbitmqctl stop

Guess you like

Origin blog.csdn.net/m0_49605579/article/details/130196536