在购买阿里云服务器后,需要等服务器启动成功并且服务器上的站点正常运行,然后将服务器加入负载均衡。想写shell脚本在服务器启动过程中不断地通过curl命令检测,直至服务器上的站点正常响应。在站点正常响应前,curl命令会出现2个错误Operation timed
与Connection refused
。请问如何用shell脚本实现?
相关问题
- How to get the return code of a shell script in lu
- Invoking Mirth Connect CLI with Powershell script
- Emacs shell: save commit message
- “command not found” errors in expect script execut
- Python script using subprocess and xclip hangs if
相关文章
- 使用2台跳板机的情况下如何使用scp传文件
- In IntelliJ IDEA, how can I create a key binding t
- shell中反引号 `` 赋值变量问题
- How get the time in milliseconds in FreeBSD?
- Launch interactive SSH bash session from PHP
- Generate disk usage graphs/charts with CLI only to
- How can I create a small IDLE-like Python Shell in
- Pause shell script until user presses enter
参考 How to create a loop in bash that is waiting for a webserver to respond? 的回答解决了
用shell写个循环应该难不倒你吧?