执行mongo报错~!~! 好急
来源:2-4 express+mongodb基础

大文1991
2017-10-25
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017
2017-10-25T22:43:35.360+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2017-10-25T22:43:35.363+0800 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:237:13
@(connect):1:6
exception: connect failed
写回答
2回答
-
你试着启动的时候指定一下存储的path
比如 mongod --dbpath /data/db
012018-01-10 -
小王子抓猫咪
2017-11-13
00
Redux+React Router+Node.js全栈开发
全网唯一的React 16+Redux+React Router4实战课程,学到手是你的真本领!
1822 学习 · 750 问题
相似问题