Install Monit on Ubuntu

Monit can be used to monitor services, restart them if required. To install monit, run

To start monit, run

Monitor Apache


Activate the rule with

Restart monit with

Testing If Monit works

Open 2 terminals. On one, tail the monit logs with

On other terminal, stop Apache

Within 2 minutes, monit will restart apache web server.


Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *