Installing mongoDB

To install mongoDB:

  1. Create a new directory to store the mongo binary files. For example, c:\mongo.

    Note: It is recommended that you put the mongoDB directories outside of the iSM installation directories. If you need to reinstall iSM, the directories will not be erased.

  2. Extract the downloaded mongoDB ZIP file to the c:\mongo directory.
  3. Create a new directory to store the mongoDB data. For example, c:\mongo\data\db.
  4. As an administrator, open a command prompt, and navigate to the c:\mongo\mongodb-architecture_version\bin directory.
  5. At the administrator command prompt, type the following command:
    mongod –-install --dbpath c:\mongo\data\db –logpath c:\mongo\log.txt
  6. Start the mongo service, and verify that it is set to autostart.

    Note: You can start the mongo service from the command line, which is useful for debugging purposes. Type the following at the command prompt:

    mongod --dbpath c:\mongo\data\db