当我尝试在终端中运行"mongod"时,我收到以下错误.我尝试卸载,重新安装和重新启动计算机.关于如何让它工作的任何建议都会很棒.
错误:
dbpath (/data/db) does not exist.
Create this directory or give existing directory in --dbpath.
See http://dochub.mongodb.org/core/startingandstoppingmongo
Run Code Online (Sandbox Code Playgroud)
旁注:节点也在我收到此错误的同时停止在我的机器上工作.
events.js:72
throw er; // Unhandled 'error' event
^
Error: failed to connect to [localhost:27017]
Run Code Online (Sandbox Code Playgroud)
任何帮助将非常感激!