Guest User

Untitled

a guest
Jan 5th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. # Install Nuget CLI using the Nuget Installer Task before running this
  2. nuget install redis-64 -excludeversion
  3. redis-64\tools\redis-server.exe --service-install; redis-64\tools\redis-server.exe --service-start
  4.  
  5. # Setup PostgreSQL, MySQL, MongoDB using Chocolatey
  6. choco feature enable -n=allowGlobalConfirmation
  7. choco install mongodb --version 3.6.0
  8. choco install mysql --version 5.7.18
  9. choco install postgresql --version 9.6.8 --params "/Password:$PGPASSWORD"
  10.  
  11. # Chocolatey profile
  12. $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
  13. if (Test-Path($ChocolateyProfile)) {
  14. Import-Module "$ChocolateyProfile"
  15. }
  16. refreshenv
  17.  
  18. mysql -e "create database test;" --user=root
  19. createdb test
  20.  
  21. mkdir D:\data\db
  22. # Start MongoDB as run as Background Process
  23. Start-Process "C:\Program Files\MongoDB\Server\3.6\bin\mongod.exe" -ArgumentList "--dbpath D:\data\db" -NoNewWindow -RedirectStandardOutput log.txt
Add Comment
Please, Sign In to add comment