我安装MongoDB的工作用DNF/yum的,然后我试图运行命令蒙戈命令不能在Fedora
mongo meteor --eval "printjson(db.getCollectionNames())
,但我得到了以下错误:
MongoDB shell version: 3.2.8 connecting to: meteor 2017-03-17T14:09:56.787+0200 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused 2017-03-17T14:09:56.787+0200 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : [email protected]/mongo/shell/mongo.js:229:14 @(connect):1:6
exception: connect failed
我搜索了一个解决方案但我找不到任何对我有用的东西。请帮我解决这个错误。谢谢。