How to resolve error :dbpath (/data/db/) does not exist permanently in MongoDB

前端 未结 5 421
旧巷少年郎
旧巷少年郎 2021-01-30 13:04

I have installed mongodb in my Ubuntu 10.04.

I know that when it comes to start the mongodb server with the command \"mongod\",then it expects /data/db

5条回答
  •  误落风尘
    2021-01-30 13:35

    If you are using mac catalina:

    mongod --dbpath=/Users/user/data/db leave this window

    then you can type in another window.

    mongo

    show dbs

提交回复
热议问题