Mongodb on Ubuntu -' Main process exited, code=exited, status=1/FAILURE'

Please use your home dir or someother dir where mongod can write.I specifically mentioned this
Do not use the dirs like /var/* as given in /etc/mongod.conf

Regarding /data/db error what is your os?
Your files are owned as root
They should be owned by mongod

1 Like