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 :: Connection refused」の解決方法
MongoDBをインストールして、早速実行してみると下記のようなエラーが出てMongoDBに接続できないことがあります。今回はこのエラーの解決方法について書きます。
% mongo QUERY Error: couldn ...