Installing RabbitMQ with a Powershell script

This section explains how to install RabbitMQ with a Powershell script called InstallRabbitMQ.ps1. This script is located at ReleaseFiles\Resources.

Note: In addition to RabbitMQ, this script also installs erlang v.21 and Chocolatey (if Chocolately is not already installed).

Stop and restart the RabbitMQ after running the script. Enter this URL in your preferred browser: http://localhost:15672/#/. The default login credentials are:

  • Username: guest
  • Password: guest
If RabbitMQ was previously installed manually, be sure to manually uninstall it and remove the erlang.cokie file from the following locations to avoid script permission errors:
  • c:\windows\system32\config\systemprofile
  • c:\Users\<UserThatInstalledERLang>\.erlang.cookie

Be sure to run exact same commands for each server when running the script.

  1. Open Powershell as an Administrator.
  2. Enter set-executionpolicy unrestricted and click Enter.
  3. Enter "Y" for Yes and click Enter. This allows you to run the InstallRabbitMQ script.
  4. Run the InstallRabbitMQ script with the following:
    .\InstallRabbitMQ.ps1 -cookie "xxx_xxx_xxxxx" -servers @('xxxxxxxxxx','xxxxxxxxx') 
    Note: for example, this would be a sample command: .\InstallRabbitMQ.ps1 -cookie "DGS_Test_Install" -servers @('LABW6412HVM991','LABW6412HVM992')