Commit 39d975e9 authored by xuezj's avatar xuezj

ui健康检查不用长连接

parent 3f2756b5
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# 返回2xx, 就绪 # 返回2xx, 就绪
# 其他, 就绪 # 其他, 就绪
statusCode=`curl -I -o /dev/null -s -w %{http_code} --no-keepalive http://localhost` statusCode=`curl -I -X HEAD -o /dev/null -s -w %{http_code} -H "Connection: close" http://localhost`
echo "statusCode: ${statusCode}" echo "statusCode: ${statusCode}"
statusCodeFirst="${statusCode:0:1}" statusCodeFirst="${statusCode:0:1}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment