mongod command not recognized when trying to connect to a mongodb server

后端 未结 14 631
暖寄归人
暖寄归人 2021-01-31 01:11

I am following the tutorials at docs.mongodb.org, I have completed the first tutorial which was to install mongodb on a windows machine. I am now at the second stage which is ge

14条回答
  •  失恋的感觉
    2021-01-31 01:57

    First, make sure you have the environment variable set up. 1. Right click on my computer 2. properties 3. advanced system settings 4. environment variables 5. edit the PATH variable. and add ;"C:\mongoDb\bin\" to the PATH variable.

    Path in the quotes may differ depending on your installation directory. Do not forget the last '\' as it was the main problem in my case.

提交回复
热议问题