MongoDB shell version v4.4.6
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: NetworkTimeout: Error connecting to 127.0.0.1:27017 :: caused by :: Socket operation timed out :
connect@src/mongo/shell/mongo.js:374:17
@(connect):2:6
exception: connect failed
exiting with code 1
每次我运行 mongo 命令时,它都会说连接到 127.0.0.1:27017 的错误是由于套接字操作超时引起的。尝试按照同行给出的许多说明进行操作,但没有成功。
希望我能按照你的指示摆脱这个。
谢谢!