Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 605 Bytes

monit.md

File metadata and controls

41 lines (26 loc) · 605 Bytes

Monit

Configure httpd server

First we need to install monit

aptitude install monit

Then edit monitrc file and uncomment the httpd section

vim /etc/monit/monitrc

set httpd port 2812 and
    use address localhost  # only accept connection from localhost
    allow localhost        # allow localhost to connect to the server and
    allow admin:monit      # require user 'admin' with password 'monit'

Restart monit to apply changes

service monit restart
monit summary

Add monit to sudoers

visudo
deploy  ALL=NOPASSWD:/usr/bin/monit