MongoDB not working. "ERROR: dbpath (/data/db) does not exist."
You need to create the directory on root /data/db or set any other path with the following command :
mongod --dbpath /srv/mongodb/
You need to create the directory on root /data/db or set any other path with the following command :
mongod --dbpath /srv/mongodb/