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