Hi,
i have a problem to start the mongo Shell over the Terminal in Ubuntu 20.04.
i Have installed Mongodb like the description in the MongoDB Doc.
If i check the status with sudo systemctl status mongodb
i can see the Active Status is active (running)
.
if i want to start the shell with mongo
command in Terminal, so i get this Error:
MongoDB shell version v5.0.18
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 :: Connection refused :
connect@src/mongo/shell/mongo.js:372:17
@(connect):2:6
exception: connect failed
exiting with code 1
Thanks for you help!