Skip to content

Instantly share code, notes, and snippets.

View MartonBoda's full-sized avatar

Márton Boda MartonBoda

View GitHub Profile
@MartonBoda
MartonBoda / Download and Install MongoDB as Windows Service PowerShell Script
Last active August 29, 2015 14:27 — forked from serdarb/Download and Install MongoDB as Windows Service PowerShell Script
A nice powershell that dowloads mongodb and installs it as windows service... this script is good for development machines.
Set-ExecutionPolicy RemoteSigned
$mongoDbPath = "C:\MongoDB"
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg"
$url = "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.4.9.zip"
$zipFile = "$mongoDbPath\mongo.zip"
$unzippedFolderContent ="$mongoDbPath\mongodb-win32-x86_64-2008plus-2.4.9"
if ((Test-Path -path $mongoDbPath) -eq $True)
{
Set-Service -Name "AppIDsvc" -StartupType Disabled -Status Stopped

Keybase proof

I hereby claim:

  • I am martonboda on github.
  • I am martonb (https://keybase.io/martonb) on keybase.
  • I have a public key ASABICEE2ZC4_N62Qh2fS8SsgUfcIPp7fzpDwSanqMyJvwo

To claim this, I am signing this object: