How can i restart Mongodb Authomatically If it Crashes ?

May 23, 2017 134 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

@simdijinkins

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

Have another answer? Share your knowledge.