Connect mongodb 4.0 with robomongo

563 views Asked by At

Here are the logs for my mongodb status which show in it is in running status

ubuntu@ip-172-31-9-130:/etc$ sudo service mongod status
● mongod.service - MongoDB Database Server
   Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: 
   Active: active (running) since Fri 2018-09-28 09:50:43 UTC; 37min ago
     Docs: https://docs.mongodb.org/manual
 Main PID: 28315 (mongod)
   CGroup: /system.slice/mongod.service
           └─28315 /usr/bin/mongod --config /etc/mongod.conf

Sep 28 09:50:43 ip-172-31-9-130 systemd[1]: Started MongoDB Database Server.
Sep 28 09:50:43 ip-172-31-9-130 mongod[28315]: 2018-09-28T09:50:43.848+0000 I CO
lines 1-10/10 (END)

But when I connect it with robomongo it throws error

Failed to connect to the server

Please help!!!

0

There are 0 answers