【发布时间】:2020-12-24 12:25:00
【问题描述】:
当我在命令提示符下尝试mongo 命令时,它给了我以下错误:
MongoDB shell version v4.2.5
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2020-09-05T19:05:18.728+0530 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: No connection could be made because the target machine actively refused it. :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2020-09-05T19:05:18.733+0530 F - [main] exception: connect failed
2020-09-05T19:05:18.733+0530 E - [main] exiting with code 1
我是 MongoDB 新手,不明白如何修复错误。
【问题讨论】:
标签: mongodb