#!/bin/sh # Nginx健康检查脚本 if curl -f http://localhost/health > /dev/null 2>&1; then exit 0 else exit 1 fi