New to MongoDB Can not run command mongo

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

    I think your log output states it clearly;

    exception in initAndListen: 10296 dbpath (/data/db) does not exist, terminating
    

    You may simply create this directory or better to define it as a configuration value within your configuration file then use it as mongod -f C:\path\to\your\mongodb.conf.

提交回复
热议问题