MongoDB not working. “ERROR: dbpath (/data/db) does not exist.”

前端 未结 5 964
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 12:07

I\'m getting the following error when I try to run \"mongod\" in the terminal. I\'ve tried uninstalling, reinstalling, and restarting the machine. Any suggestions on how to

5条回答
  •  暖寄归人
    2020-12-04 12:35

    I solved the problem with :

    sudo mongod --dbpath=/var/lib/mongodb and then mongo to access the mongodb Shell.

提交回复
热议问题