VestaCP - установка и настройка monit на CentOS 7: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) |
Admin iph (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
[[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]] | [[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]] | ||
− | === VestaCP - установка и настройка monit на CentOS 7 === | + | === VestaCP - установка и настройка monit на CentOS 7 - мониторинг основных сервисов === |
# yum install monit git -y | # yum install monit git -y | ||
Строка 17: | Строка 17: | ||
+ | Если стоит mariadb - то изменяем файл: | ||
# cat mysql.conf | # cat mysql.conf | ||
check process mysql with pidfile /var/run/mariadb/mariadb.pid | check process mysql with pidfile /var/run/mariadb/mariadb.pid | ||
start program = "/usr/bin/systemctl start mariadb.service" | start program = "/usr/bin/systemctl start mariadb.service" | ||
stop program = "/usr/bin/systemctl stop mariadb.service" | stop program = "/usr/bin/systemctl stop mariadb.service" |
Версия 21:34, 30 июля 2016
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 ./ && 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"