解决Mongodb启动报错Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed
2021-08-10
操作系统 MongoDB windows
4298
0
MongoDB shell version v5.0.2connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodbError: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: ����Ŀ�����������ܾ��������ӡ� :connect@src/mongo/shell/mongo.js:372:17@(connect):2:6exception: connect failedexiting with code 1今天启动mongodb连接出现上面的错误,最终找的的解决方法是打开cmd命令行,输入以下命令mongod.exe --nojournal -