初始化提交

This commit is contained in:
dxin
2025-10-13 11:05:51 +08:00
commit ab171d45bb
301 changed files with 59788 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
# 检查指定端口的节点状态up/down
PORT=$1
NGINX_CONFIG="/data/tengine/conf/vhosts/s1.jennie.im.conf"
if [ -z "$PORT" ]; then
echo "用法: $0 <port>"
exit 1
fi
# 检查配置中是否包含"down"关键字
STATUS=$(grep "server 10.0.0.5:$PORT" $NGINX_CONFIG | grep -q "down" && echo "down" || echo "up")
echo $STATUS # 输出结果down 或 up