Mongodb Instance is failed to get started on Debian – with error : {“error”:{“code”:9001,”codeName”:”SocketException”,”errmsg”:”Cannot assign requested address”}}}

Mongodb 5.0 is is getting started with sudo systemctl start mongod.service on Debian 10 . Issue Below error is being raised while starting the mongodb instance 5.0 on Linux/Debian – :{“error”:{“code”:9001,”codeName”:”SocketException”,”errmsg”:”Cannot assign requested address”}}} Root Cause This error is being raised when server is not able to identify the hostname and port i.e. address.  This … Read more

How to Connect to Mongodb database server Locally and Remote

As per mongodb documentation, we can use the mongo command to access the database using below command – Connect to mongodb database locally $ mongo -u user1 -p password123 –authenticationDatabase admin mongo -u user 127.0.0.1/admin Connect to mongodb database Remotely To connect to mongo database remotely we need below steps – 1. you should have … Read more

%d bloggers like this: