为了账号安全,请及时绑定邮箱和手机立即绑定

mongo 链接的问题 MongoError: connection 0 to 127.0.0.1:27017 timed out

mongo 链接的问题 MongoError: connection 0 to 127.0.0.1:27017 timed out

程序员熊明才 2017-01-10 13:19:18
/usr/local/bin/node www.js http://localhost:3000 /Users/xiongmingcai/GitHub/Movie-website/node_modules/mongoose/node_modules/mongodb/lib/server.js:265         process.nextTick(function() { throw err; })                                       ^ MongoError: connection 0 to 127.0.0.1:27017 timed out     at Function.MongoError.create (/Users/xiongmingcai/GitHub/Movie-website/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:29:11)     at Socket.<anonymous> (/Users/xiongmingcai/GitHub/Movie-website/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:184:20)     at Object.onceWrapper (events.js:290:19)     at emitNone (events.js:86:13)     at Socket.emit (events.js:185:7)     at Socket._onTimeout (net.js:342:8)     at ontimeout (timers.js:365:14)     at tryOnTimeout (timers.js:237:5)     at Timer.listOnTimeout (timers.js:207:5) Process finished with exit code 1
查看完整描述

1 回答

?
程序员熊明才

TA贡献2条经验 获得超0个赞

把所有 终端程序退出 在链接  目的排除端口占用启动不了


查看完整回答
反对 回复 2017-01-10

没有找到匹配的内容?试试慕课网站内搜索吧

添加回答

代码语言

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号