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' #更改指定運行路徑
相關文章
相關標籤/搜索