![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
艾瑞莉娅_
昂扬不灭
展开
-
win上的shell脚本在Linux上报错:坏的解释器
是因为win上的换行符和Linux上的不一致,可以使用命令去除: sed -i 's/\r$//' build.sh原创 2021-11-09 15:29:39 · 854 阅读 · 0 评论 -
curl 探测某个服务是否正常的脚本
flag=503 while [ ${flag} -ne 200 ] do flag=`curl -i -m 10 -o /dev/null -s -w %{http_code} localhost:6666/healthz/ready` echo "result_flag='${flag}'" sleep 5s done ```java 在这里插入代码片原创 2021-07-20 17:33:49 · 441 阅读 · 0 评论