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

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

mongod 没找到路径code

解决方案:blog

mkdir /data/db/ -p

或者it

mongod --dbpath '/usr/bin/data/db' #更改指定运行路径
相关文章
相关标签/搜索