New to MongoDB Can not run command mongo

前端 未结 15 2283
孤独总比滥情好
孤独总比滥情好 2021-01-29 20:00

I was trying to run MongoDB:

   E:\\mongo\\bin>mongod
    mongod --help for help and startup options
    Sun Nov 06 18:48:37
    Sun Nov 06 18:48:37 warning:          


        
15条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-29 20:10

    If you're using Windows 7/ 7+.

    Here is something you can try.

    Check if the installation is proper in CONTROL PANEL of your computer.

    Now goto the directory and where you've install the MongoDB. Ideally, it would be in

    C:\Program Files\MongoDB\Server\3.6\bin

    Then either in the command prompt or in the IDE's terminal. Navigate to the above path ( Ideally your save file) and type

    mongod --dbpath

    It should work alright!

提交回复
热议问题