How can i restart Mongodb Authomatically If it Crashes ?

May 23, 2017 2.3k 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.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!