【发布时间】:2014-08-27 06:11:55
【问题描述】:
当我尝试在终端中运行“mongod”时出现以下错误。我试过卸载、重新安装和重新启动机器。任何关于如何让它工作的建议都会很棒。
错误:
dbpath (/data/db) does not exist.
Create this directory or give existing directory in --dbpath.
See http://dochub.mongodb.org/core/startingandstoppingmongo
旁注: 在我收到此错误的同时,Node 也停止在我的机器上工作。
events.js:72
throw er; // Unhandled 'error' event
^
Error: failed to connect to [localhost:27017]
任何帮助将不胜感激!
【问题讨论】:
-
您是否按照错误消息中的说明进行操作?
标签: node.js angularjs mongodb express