Process: 881 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=2) Main PID: 881 (code=exited, status=2) code example
Example: Process: 12270 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=14)
chown -R mongodb:mongodb /var/lib/mongodb
chown mongodb:mongodb /tmp/mongodb-27017.sock
sudo service mongod restart