mongodb - 用mongoose时,出现 connect ETIMEDOUT
高洛峰
高洛峰 2017-04-28 09:05:57
0
1
589
.../node_modules/mongoose/node_modules/mongodb/lib/server.js:235
        process.nextTick(function() { throw err; })
                                            ^
Error: connect ETIMEDOUT
    at exports._errnoException (util.js:746:11)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
过去多啦不再A梦

To put it simply, it means that it cannot be connected, and there are generally two situations.

  1. The connected MongoDB is local
    Then you need to check whether your connection string is written correctly and whether the default port number has been changed.

  2. The connected MongoDB is on another server
    First check whether the two servers can communicate normally, and then refer to the first point

I think at least we need to make sure the above is correct.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!