Installing RabbitMQ Offline without TLS 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.
Perform an Offline Installation without TLS for version 10.5.0.0 and later
-
Download the Erlang and RabbitMQ Installers 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.
-
Copy the downloaded installers (for Erlang and RabbitMQ) and the RabbitMQ-Helper Installer to the target (offline) host computer.
-
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 `
-OfflineErlangInstallerPath "<erlang-installer-with-complete-path>" `
-OfflineRabbitMqInstallerPath "<rabbitmq-installer-with-complete-path>" `
-Verbose;
Perform an Offline Installation without TLS for version 10.4.2.0 and earlier
-
Download the Erlang and RabbitMQ Helper on a computer with internet access. For details about the installation process, see Installing RabbitMQ with RabbitMQ Helper.
Make sure to verify the compatibility matrix before downloading the installer.
-
Copy the downloaded installers (Erlang and RabbitMQ) and RabbitMQ Helper Installer to the target (offline) host computer.
-
Install the RabbitMQ Helper on the host computer that does not have internet access.
-
Run the scripts listed below on the host computer where RabbitMQ Helper is installed.
These scripts are a necessary preliminary step for the RabbitMQ installation command, as they prepare the Helper for offline installation.
CopyGet-ErlangInstaller ` -PrepareForOfflineInstall ` -OfflineErlangInstallerPath "<erlang-installer-with-complete-path>" ` -Verbose;
#Use the -Force switch to force download even if the files exist on the system
CopyGet-RabbitMqInstaller ` -PrepareForOfflineInstall ` -OfflineRabbitMqInstallerPath "<rabbitmq-installer-with-complete-path>" ` -Verbose;
#Use the -Force switch to force download even if the files exist on the system5. Conduct the desired offline installation on the target host by running the installation scripts 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))Copy# Offline Installation Without TLS
Install-Connector `
-Credential $credential `
-AdminCredential $adminCredential `
-OfflineErlangInstallerPath "<erlang-installer-with-complete-path>" `
-OfflineRabbitMqInstallerPath "<rabbitmq-installer-with-complete-path>" `
-Verbose;There are more switches for this
Install-Connector
cmdlet. For more information, runget-help install-connector
when inside the RabbitMQ Helper.