Friday, May 4, 2018

mongodb installation on windows

  1. windows key
  2. cmd
  3. ctrl+shift+enter for administrator prompt
  4.  msiexec.exe  /q /i mongodb-win32-x86_64-2008plus-ssl-3.6.4-signed.msi INSTALLLOCATION="(drive or install location):\MongoDB\Server\3.6.4\" ADDLOCAL="all"
  5.  the above also installs compass
  6.  add the bin folder location to the path variable
  7.  create \data\db data directory in the drive from which you want to start mongodb
  8. goto the drive where you have installed mongodb and run the mongodb server as follows:
  9. mongod
    1. this server window will be open and wait to listen for the client connection
  10.  now run the mongodb client as mongo on the same drive
  11. cls clears the screen
  12.  ->
  13. reference: 
  14. https://docs.mongodb.com/manual/mongo/ 
  15. https://docs.mongodb.com/manual/introduction/
  16. https://docs.mongodb.com/tutorials/install-mongodb-on-windows/
  17. https://www.mkyong.com/mongodb/how-to-install-mongodb-on-windows/
  18. its set up failed after it took about around 1 hour.
  19. useful:
    1.  https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/
    2. https://docs.mongodb.com/manual/reference/configuration-options/ 
    3.  

No comments:

Post a Comment