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
# Mongo replica set starter for use in Windows 7 (Powershell 3.x) | |
Write-Host "Mongo Replica Set Starter" | |
Write-Host "WARNING: Will delete rs1/2/3 directories and 1/2/3.log files in the current directory." | |
$replSet = "m101" | |
$curDir = (Get-Location).Path + "\" | |
function Start-MongoRS ($logPath, $dataDir, $portNo) { | |
$lp = $curDir + $logPath |