Process: 780 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=2) code example

Example 1: 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

Example 2: ExecStart=/usr/bin/mongod --quiet --config /etc/init/mongod.conf (code=exited, status=100)

cd /var/lib/mongodb
sudo chown -R mongodb:mongodb *
sudo service mongod restart

Tags:

Misc Example