How can i restart Mongodb Authomatically If it Crashes ?

May 23, 2017 1.7k views
MongoDB Ubuntu 16.04

My mongod process was killed for taking too much ram. I had to restart it myself manually. Is there any way it can restart automatically?

1 Answer


You can use monit to monitor your processes and restart them in case of failures.

Have another answer? Share your knowledge.