Install RabbitMQ, install RabbitMQ, install RabbitMQ, install RabbitMQ, install RabbitMQ

Downloading the Installation package

Since RabbitMQ is written in Erlang, you need to install Erlang first. In the RabbitMQ website (www.rabbitmq.com/download.ht.) Erlang is available for download (in the red box below), and the latest version can also be downloaded from the Erlang website. What I have downloaded here is the Windows 64-bit Installer version.

 

 

Running the installation package

Run the Erlang and RabbitMQ installation packages in sequence, and choose any installation path.

Note: After Erlang is successfully installed, an environment variable is registered, as shown below.

In the event of an installation failure or uninstall reinstall, this variable is most likely not cleared. After reinstallation, you will need to manually modify this environment variable to the specified installation directory.

   

Once Rabbit is installed, the Start menu lists shortcuts for clicking Execute or using the command line to execute batch commands in RabbitMQ’s sbin directory.

 

Install install, remove remove, start start, stop stop.

Because the batch instructions in the installation package are defective, I will get an error every time I execute this script. Under normal circumstances, RabbitMQ should already have Windows installed.

You can WIN+R and type services. MSC to see if the Windows service has RabbitMQ (the default service name). As shown below (it was successfully installed after I modified the batch processing instructions).

 

Or WIN+R, enter CMD and run sc query RabbitMQ to check the service status.

If the RabbitMQ service is successfully installed, sc start RabbitMQ to start the service.

An error to solve

If I start the service directly, or run the rabbitmq-service start (or install) command in the sbin directory to start (or install) the service, the following message is displayed: ERLANG_HOME not set correctly.

 

Look at the system environment variable here. ERLANG_HOME is configured correctly. Rabbitmq-service. bat: rabbitmq-service.bat: rabbitmq-service.bat

The % sign should be used if there is a problem with the reference symbol of the variable. That is! ERLANG_HOME! , should be written as %ERLANG_HOME%.

You need to change all variables to % references and change the rest of the.bat files to prevent nested calls.

I uploaded a directory of scripts that I modified to work properly 545c.com/file/149603… You can download it if you want.

After the script is successfully modified, run the rabbitmq-service install command to install the service.

Error: could not set correct interactive mode. Error: Could not set correct interactive mode. Since I didn’t have a screenshot when I encountered an error, I looked up a similar error message online.) :

Other information: Error :C: Program Files\erl6.0\ erTS-6.0 \bin\erlsrv: Warning, could not set correct interactive mode. RabbitMQ Error: B: Program Files\erl6.0\erts-6.0\bin\ ErlSRV: Warning, could not set correct service description (comment) RabbitMQ Error: 413 脼脨 dumping C: Program Files\erl6.0\erts-6.0\bin\ ErlSRV: Failed to start service Rabbitmz. Error: Slaughter coal 413 脼脨 dumpingCopy the code

  

This occurs because registry information was not cleaned up due to an incomplete previous installation.

WIN+R, type regedit to open the registry. Find HKEY_LOCAL_MACHINE/SOFTWARE/Ericsson/Erlang/ErlSrv / 1.1 / RabbitMQ and delete it.

After the registry is cleared, the installation is complete. After the installation is successful, start the service.

Configure the parameters in the path C:\Users\ [Current PC user] \AppData\Roaming\RabbitMQ\advanced.config. You can keep the default Settings.

Install the background management interface

After the service is installed, go to the sbin directory of rabbitMQ,

To view the installed plug-ins, run rabbitmq-plugins list.

Run rabbitmq-plugins enable Rabbitmq-management to install the background management interface.

 

Localhost :15672/#/

 

At this point, you should be working normally. If you have any other installation problems, please leave a message.