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' #更改指定运行路径

猜你喜欢

转载自www.cnblogs.com/0n-the-way/p/10547581.html