-
Notifications
You must be signed in to change notification settings - Fork 1
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:
- Open a command prompt window on the host machine
- Make sure your Windows system is the 64 bit version. Find out using:
wmic os get osarchitecture - 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
(iv) Start mongodb
C:\mongodb\bin\mongod.exe
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
(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.
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


