Skip to content

Instantly share code, notes, and snippets.

@FeodorFitsner
Created February 19, 2016 19:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save FeodorFitsner/06b377df42ba8f398909 to your computer and use it in GitHub Desktop.
Save FeodorFitsner/06b377df42ba8f398909 to your computer and use it in GitHub Desktop.
Write-Host "Installing RabbitMQ..." -ForegroundColor Cyan
Write-Host "Downloading..."
$exePath = "$($env:USERPROFILE)\rabbitmq-server-3.5.4.exe"
(New-Object Net.WebClient).DownloadFile('http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.4/rabbitmq-server-3.5.4.exe', $exePath)
Write-Host "Installing..."
cmd /c start /wait $exePath /S
$rabbitPath = 'C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.4'
Write-Host "Installing service..."
Start-Process -Wait "$rabbitPath\sbin\rabbitmq-service.bat" "install"
Write-Host "Starting service..."
Start-Process -Wait "$rabbitPath\sbin\rabbitmq-service.bat" "start"
Get-Service "RabbitMQ"
Write-Host "RabbitMQ installed and started" -ForegroundColor Green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment