Windows system-detailed explanation of the installation process of RabbitMQ (with software installation package)

Detailed explanation of RabbitMQ installation and configuration process (Windows version)

1 Introduction:

Information related to this RabbitMQ installation environment:

  • Win11 64-bit Professional Edition
  • erlang opt_win64_24.0
  • rabbitmq-server-3.9.8

The underlying source code of RabbitMQ is developed based on the erlang language, so installing rabbitMQ requires the erlang language environment.

2. Download the installation program

When the installed versions of erlang and rabbitmq do not correspond, they may not operate normally. The corresponding installation packages of erlang and rabbitmq required for this installation have been compiled in the network disk. The download address is as follows. If the extraction code fails, please contact us in time. :

Link: https://pan.baidu.com/s/1IZIxBrUVGs6env7g6tBliw
Extraction code: ohjj

Insert image description here

3. Installation

3.1. Erlang installation

  1. Before installing rabbitmq, you need to install erlang and configure environment variables. After the installation package is successfully downloaded, double-click the opt_win64_24.0.exe file you just downloaded to install it. You can customize the installation path in the middle. It is best not to have Chinese characters in the path.

  2. After the installation is complete, start configuring the environment variables, find your computer's advanced system settings - environment variables - system variables - new, enter the variable name (ERLANG_HOME) and variable value (your own erlang installation path):

Insert image description here

After confirmation, click Edit in the path of the system variable to add the path:

Insert image description here

  1. Verify whether the installation is successful: open cmd, enter erl, and press Enter to display the installed erlang version number, which means the installation is successful. Next, install rabbitmq

Insert image description here

3.2. Install RabbitMQ

  1. Double-click the rabbitmq installation software you just downloaded to execute. You can customize the installation path. Similarly, do not include Chinese characters in the path, otherwise errors may occur. Continue all the way until the installation is successful.

  2. After installation, rabbitmq-management needs to be activated:

    Open cmd and enter the sbin directory of the rabbitmq installation path. (It is recommended to directly open the sbin directory corresponding to the file, then directly enter cmd in the path and press Enter to enter the corresponding path):

Insert image description here

Insert image description here

  1. Run the following command: Download and install the console, you can directly access rabbitmq on the front-end page

    rabbitmq-plugins enable rabbitmq_management
    

    After the command is executed successfully, you will see that the following three plug-ins are successfully started:

Insert image description here

Additional commands added:

# 执行启动和停止命令时,需要以管理员身份打开cmd

net start RabbitMQ  # 启动RabbitMQ

net stop RabbitMQ   # 停止RabbitMQ

rabbitmqctl status  # 查看 RabbitMQ的运行状态

4. Verify that the installation is complete

After the installation is complete, you can access the web management interface through a browser by visiting http://localhost:15672 :

If a connection timeout occurs during access, it may be because the RabbitMQ service has not been started. Please execute the above startup command and try again.

When the access is successful,The initialization username and password are both: guest, you can log in and access

Insert image description here

Insert image description here

Guess you like

Origin blog.csdn.net/weixin_43155804/article/details/124907329