宝塔502错误监控报警
监控方案
- 宝塔插件
- 「安全监控」→设置CPU/内存阈值报警
- 自定义脚本
bash
#!/bin/bash if curl -sI http://localhost | grep 502; then echo "502 Alert" | mail -s "紧急报警" admin@domain.com systemctl restart php-fpm fi
- 第三方服务
- UptimeRobot免费监控
- 阿里云云监控
/www/server/php/80/etc/php-fpm.conf
调整max_children值更新时间:2025-06-21 16:40:03
上一篇:.htaccess强制跳转规则
下一篇:SSL自动续签失败修复