MoongoDB数据库启动报错'exception in initAndListen: NonExistentPath: Data directory /data/db not found., terminating'

exception in initAndListen: NonExistentPath: Data directory /data/db not found., terminating

mongod 没找到路径

解决方案:

mkdir /data/db/ -p

或者

mongod --dbpath '/usr/bin/data/db' #更改指定运行路径

 

posted @ 2019-03-17 16:40  人生多风雨  阅读(9525)  评论(0编辑  收藏  举报