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

时间:2019-03-17 16:52:34   收藏:0   阅读:1829

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

mongod 没找到路径

解决方案:

mkdir /data/db/ -p

或者

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

 

原文:https://www.cnblogs.com/0n-the-way/p/10547581.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!