MongoDB shell version v5.0.2
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: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: ����Ŀ�����������ܾ��������ӡ� :
connect@src/mongo/shell/mongo.js:372:17
@(connect):2:6
exception: connect failed
exiting with code 1
今天启动mongodb连接出现上面的错误,最终找的的解决方法是打开cmd命令行,输入以下命令
mongod.exe --nojournal --dbpath .
再次运行mongo,完美解决。
mongo
文章评论(0)