I installed mongodb using dnf/yum and I then tried running the command
mongo meteor --eval "printjson(db.getCollectionNames())
,but I get the following error:
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 : connect@src/mongo/shell/mongo.js:229:14 @(connect):1:6
exception: connect failed
I searched for a solution but I couldn't find anything that worked for me. Please help me resolve the error. Thanks.
via yusha uzumo
No comments:
Post a Comment