Created
February 19, 2016 19:15
-
-
Save FeodorFitsner/06b377df42ba8f398909 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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