Installing RabbitMQ Offline Without TLS via PowerShell
An offline RabbitMQ installation is helpful when you are trying to install RabbitMQ on a system without internet access and cannot download any installers directly.
To install RabbitMQ offline without TLS by using PowerShell:
-
Download the PowerShell 7.6 MSI, the Erlang and RabbitMQ installers, and the RabbitMQ Helper installer on a computer with internet access using the installation links provided in the Installing RabbitMQ with RabbitMQ Helper section.
Make sure to verify the compatibility matrix before downloading the installer. RabbitMQ Helper v13.0.0.0 and later requires PowerShell 7.6 or later.
-
Copy the downloaded installers (PowerShell, Erlang, RabbitMQ, and RabbitMQ Helper) to the target (offline) host computer, and install PowerShell 7.6 before installing RabbitMQ Helper.
-
Install the RabbitMQ-Helper on the host computer that does not have internet access.
-
Conduct the desired offline installation on the target host by running the commands provided below.
Copy#Get the values from your Secret Server Site Connector page for the following:
$username = "<SITE CONNECTOR USERNAME FROM SECRET SERVER>"
$password = "<SITE CONNECTOR PASSWORD FROM SECRET SERVER>"Copy#Create a PSCredential object to use for the installation
$credential = New-Object System.Management.Automation.PSCredential ($username, (ConvertTo-SecureString -String $password -AsPlainText -Force))Copy# Insert RabbitMQ Admin User Credentials
$adminUsername = "<User-defined RabbitMQ admin Username>"
$adminPassword = "<User-defined RabbitMQ admin Password>"Copy# Create a PSCredential object to use for the installation
$adminCredential = New-Object System.Management.Automation.PSCredential ($adminUsername, (ConvertTo-SecureString -String $adminPassword -AsPlainText -Force))CopyInstall-Connector `
-Credential $credential `
-AdminCredential $adminCredential `
-InstallPath “<directory-to-install-Erlang-RabbitMQ>” `
-OfflineErlangInstallerPath "<erlang-installer-with-complete-path>" `
-OfflineRabbitMqInstallerPath "<rabbitmq-installer-with-complete-path>" `
-Verbose;
Include -InstallPath in the Install-Connector cmdlet only if RabbitMQ and Erlang are installed in a directory other than the default installation directory (C:\Program Files).