猿问

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

/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

58746ea70001a13503191000.jpg

58746eaa00010a6a05000321.jpg


程序员熊明才
浏览 5499回答 1
1回答

程序员熊明才

把所有 终端程序退出 在链接  目的排除端口占用启动不了
随时随地看视频慕课网APP

相关分类

MongoDB
我要回答