I have this mongo.zip installed in my win 10.
I have set the environment path with bin.
Somehow whenever I start command line, my mongo cannot start without mongod first.
C:\Users\asus>mongo
MongoDB shell version v4.4.1
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=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 :: No connection could be made because the target machine actively refused it. :
connect@src/mongo/shell/mongo.js:374:17
@(connect):2:6
exception: connect failed
exiting with code 1
but if I run mongod
before mongo
, mongo is running perfectly.
So, my question is: how do I running mongo
without mongod
locally.
PS. my compass is running and can connect to AWS cloud.
Please provide pictures if you can.
Thank you!