MongoDB:错误:无法连接到服务器127.0.0.1:27017

时间:2020-05-16 14:01:24

标签: mongodb

几周前安装了Mongodb,直到今天为止都可以正常使用 我想开始时会发生这种情况:

PS C:\mongodb> mongo
MongoDB shell version v4.2.6
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2020-05-16T15:30:35.754+0200 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 :: 
A connection could not be established because the target computer refused to connect. :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2020-05-16T15:30:35.761+0200 F  -        [main] exception: connect failed
2020-05-16T15:30:35.761+0200 E  -        [main] exiting with code 1
PS C:\mongodb>    

我该怎么做才能再次建立连接? 感谢您的提示。

0 个答案:

没有答案