我安裝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
我搜索了一個解決方案但我找不到任何對我有用的東西。請幫我解決這個錯誤。謝謝。