Skip to content

Setup Windows host machine

manaswis edited this page Mar 25, 2013 · 9 revisions

STEP I: Setting up host machine

Prerequisite: The host machine should run a 64 bit version of the operating system. Steps:

  1. Open a command prompt window on the host machine
  2. Make sure your Windows system is the 64 bit version. Find out using:
    wmic os get osarchitecture
  3. Download and install the 64 bit version of MongoDB. This is required because 32 bit version has a limitation of 2GB.
    (i) Download MongoDb for Windows (64 bit version)
    If you want to install the 32 bit version, follow this link -> Download 32 bit version
    (ii) Extract the archive to C:\ by right clicking on the archive and selecting Extract All and browsing to C:. The folder will be:
    C:\mongodb-win32-x86_64-2.0.5\
    (iii) At the command prompt,
    cd \
    move C:\mongodb-win32-* C:\mongodb
    md data
    md data\db

mongodb-extract

(iv) Start mongodb
C:\mongodb\bin\mongod.exe

mongod-windows-start

This starts the MongoDB database process. "waiting connections" will be displayed once the process starts.

For more detailed instructions on installations, go to -> Install mongoDB on Windows

Testing MongoDB process

(i) At the command prompt,   				       
	   `start C:\mongodb\bin\mongo.exe`    
(ii) Type the following commands in the newly opened command prompt window (from the above command)   
	   `> db.test.save( { a: 1 } )`   
   `> db.test.find()`    
You should be able to see -    
    `{ "_id" : ObjectId("50af218a0e4451a45194eed5"), "a" : 1 }`   
The displayed ObjectId can be different on your system. If you see this, then mongoDB has been started successfully.   
 (iii)Type Ctrl + C to exit mongo shell and close this window.   

mongodb-test

The "mongod" service should still be running in the first terminal.

IMPORTANT: Make sure to start mongod service before you start the SensorAct system.

NEXT : Setup SensorAct System

Clone this wiki locally