New to MongoDB Can not run command mongo

前端 未结 15 2276
孤独总比滥情好
孤独总比滥情好 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:16

    You should create a startup.bat if you're using Windows, much more convenient:

    C:\mongodb\mongodb-win32-x86_64-eiditon\bin\mongod.exe --dbpath C:\mongodb\data
    

    And just dbclick startup.bat and mongodb will run using C:\mongodb\data as its data folder.

提交回复
热议问题