#!/bin/bash
pidof httpd
if [ $? -eq 0 ];then
echo "httpd is ok"
else
echo "httpd is not ok"
/etc/init.d/httpd start
fi
pidof keepalived
if [ $? -eq 0 ];then
echo "keepalived is ok"
else
echo "keepalived is not ok"
systemctl start keepalived
fi
相关文章
- 02-29Spring Cloud 之 Prometheus基于Eureka实现微服务监控(二十二)
- 02-29SpringBoot服务如何开放指标监控与健康检查?Actuator了解一下
- 02-29zabbix监控华为服务器硬件状态
- 02-29第七章 服务监控之spring-boot-admin
- 02-29gopsutil 监控服务器性能
- 02-29服务器压测与监控工具
- 02-29服务器压测与监控工具
- 02-2921.Pod的limit和request和资源监控收集服务Heapster
- 02-29在Mac上开启自带的Apache,httpd服务
- 02-29Saltstack推送httpd服务 与 nginx服务