I am unable to access mongo shell in Ubuntu 16.04, but am able to run
sudo mongod
and its working , but when i try to run
mongo or sudo mongo
the following error raises
MongoDB shell version v3.4.6
connecting to: mongodb://127.0.0.1:27017 2017-07-26T14:33:50.413+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused 2017-07-26T14:33:50.414+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:237:13 @(connect):1:6 exception: connect failed
sudo service mongod start
. – Burdy