以下在Debian squeeze中运行正常,但在Ubuntu 12.04中总是返回“Aggregate instance is DOWN”,无论实例是up还是down。
wget -O/dev/null -q https://myhost:8443/inst/openid_login.html && echo Aggregate instance is UP || echo Aggregate instance is DOWN
我在Debian中编写并测试了脚本,但是还需要它在Ubuntu上工作。我假设我需要做一些简单的替代,但不确定是什么
答案 0 :(得分:2)
通过指定SSL版本来解决它,如下所示:
wget -O/dev/null --secure-protocol=sslv3 https://myHost:8443/inst/openid_login.html && echo Aggregate instance is UP || echo Aggregate instance is DOWN