MongoDB data/db not found
You can also give this command sudo mongod --dbpath=/var/lib/mongodb
.
Open another terminal and run your mongod.
You need to create this directory as root
Either you need to use sudo , e.g. sudo mkdir -p /data/db
Or you need to do su - to become superuser, and then create the directory with mkdir -p /data/db