VestaCP - установка и настройка monit на CentOS 7: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) |
Admin iph (обсуждение | вклад) |
||
Строка 8: | Строка 8: | ||
# cd /etc/monit.d/ | # cd /etc/monit.d/ | ||
− | # git clone https://github.com/shapilokk/vesta-centos7-monit.git ./ | + | # git clone https://github.com/shapilokk/vesta-centos7-monit.git |
+ | # mv vesta-centos7-monit/* ./ | ||
+ | # rm -f README.md | ||
# systemctl restart monit | # systemctl restart monit | ||
Текущая версия на 14:00, 7 августа 2017
VestaCP - установка и настройка monit на CentOS 7 - мониторинг основных сервисов
# yum install monit git -y # systemctl enable monit
# cd /etc/monit.d/ # git clone https://github.com/shapilokk/vesta-centos7-monit.git # mv vesta-centos7-monit/* ./ # rm -f README.md # systemctl restart monit
Все конфиги для поднятия основных сервисов на месте:
crond.conf httpd.conf memcached.conf nginx.conf sshd.conf vesta-php.conf exim.conf logging mysql.conf postgresql.conf vesta-nginx.conf vsftpd.conf
Если стоит mariadb - то изменяем файл:
# cat mysql.conf check process mysql with pidfile /var/run/mariadb/mariadb.pid start program = "/usr/bin/systemctl start mariadb.service" stop program = "/usr/bin/systemctl stop mariadb.service"